list — CMake 3.23.0-rc4 Documentation
https://cmake.org/cmake/help/latest/command/list.htmlIntroduction ¶. The list subcommands APPEND, INSERT, FILTER, PREPEND , POP_BACK, POP_FRONT, REMOVE_AT, REMOVE_ITEM , REMOVE_DUPLICATES, REVERSE and SORT may create new values for the list within the current CMake variable scope. Similar to the set () command, the LIST command creates new variable values in the current scope, even if the list ...
list(REMOVE_ITEM) not working in cmake - Stack Overflow
stackoverflow.com › questions › 36134129Mar 21, 2016 · After getting the full path of the special file, I could do a remove from the list. Here is a small example. cmake_minimum_required(VERSION 3.4) project(list_remove_item_ex) file(GLOB SOURCES "src/*.cpp") # this is the file I want to exclude / remove from the list get_filename_component(full_path_test_cpp ${CMAKE_CURRENT_SOURCE_DIR}/src/test.cpp ABSOLUTE) message("${full_path_test_cpp}") list(REMOVE_ITEM SOURCES "${full_path_test_cpp}") message("${SOURCES}")
remove — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpremove — CMake 3.23.0-rc3 Documentation remove ¶ Deprecated since version 3.0: Use the list (REMOVE_ITEM) command instead. remove (VAR VALUE VALUE ...) Removes VALUE from the variable VAR. This is typically used to remove entries from a vector (e.g. semicolon separated list). VALUE is expanded.