Hi, I've simplified a problem I'm encountering: I have following hierarchie: |--proj1 |--|--CMakeLists.txt |--CMakeLists.txt
the proj1/CMakeLists.txt contains: PROJECT( PROJ1 ) SET( PROJ1_SRCS main.cc ) ADD_LIBRARY( PROJ1 STATIC ${PROJ1_SRCS} ) and the ./CMakeLists.txt contains: SUBDIRS(proj1) MESSAGE ( STATUS "PROJ1_SOURCE_DIR: ${PROJ1_SOURCE_DIR}") now, when I run a cmake ., the PROJ1_SOURCE_DIR value is "", and if I then rerun cmake . then the value is correct. Why does it need two cMake pass to be correct, and is it possible to have it done in one ? Thanks
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake