[CMake] managing lists with space separated elements
Piotr Dobrogost
pd at opensource.dobrogost.pl
Fri Apr 10 17:54:21 EDT 2009
Hi
Can the list operations in cmake be carried out on a list with space
separated elements without converting this list to cmakes' inner format?
Below, "standard" I guess, way of doing this makes me cry :)
STRING(REPLACE " " ";" _LIST ${CMAKE_C_STANDARD_LIBRARIES})
LIST(REMOVE_ITEM _LIST "wldap32.lib")
TO_LIST_SPACES(_LIST CMAKE_C_STANDARD_LIBRARIES)
--
Piotr Dobrogost
*** curlpp.org - c++ wrapper for libcurl ***
More information about the CMake
mailing list