Following is a part of my CMakeLists.txt file.
file(GLOB SOURCES "xyz/*.cpp")
message("${SOURCES}")
list(REMOVE_ITEM SOURCES "src1.cpp")
message("${SOURCES}")
Here in file "xyz/*.cpp" is a relative path.
Content of ${SOURCES} is the same before and after REMOVE_ITEM.
Why is list(REMOVE_ITEM) not working in my case? Any help would be invaluable.