Am Donnerstag, 19. Mai 2011, 12:22:32 schrieb J.S. van Bethlehem: > Hello, > > Given that CMake errs when you try to some sub-directory twice using > add_subdirectory() I presume there is some variable that stores a list > of the directories that were added to the build sofar. But I can't find > the name of the variable. Does it exists (well... better would be: is it > visible to users) and if so, what is it called?
I don't know the answer to your question, but: I use a global property to store the absolute path of all subdirectories added by a macro. If this macro encounters that the requested subdirectory is already in the list it simply does nothing. Eike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ 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
