If I have a CMake project organized in more than two level, i.e. CMakeLists.txt: PROJECT(A) add_subdirectories(./projectB)
./projectB/CMakeLists.txt: PROJECT(B) add_subdirectories(${PROJECT_SOURCE_DIR}/projectC) ./projectB/projectC/CMakeLists.txt: PROJECT(C) is there some kind of way for a project to detect the name of the project from which it was added? In this example, can C know that was added by B? (and B was added by A?) Thanks!! Fil
_______________________________________________ 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