Hello everyone,
A silly question maybe, but I'm pretty sure at some point I read in some
piece of CMake documentation about a direct way to test for the presence
of an element in some list. So the following in a single command:
list(FIND SOME_LIST TEST_ELEMENT TEST_INDEX)
if(${TEST_INDEX} EQUALS -1)
set(FOUND_ELEMENT FALSE)
else(${TEST_INDEX} EQUALS -1)
set(FOUND_ELEMENT TRUE)
endif(${TEST_INDEX} EQUALS -1)
If course I can always make this into a macro, but I'm pretty sure I
remember about some built-in functionality that does this. But I don't
remember where I read it and what the syntax would be (so it could very
well be it doesn't exist either and I'm confused with something else)
Any ideas?
Yours sincerely,
Jakob van Bethlehem
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake