Re: [CMake] PROJECT_SOURCE_DIR needs two cMake pass to be set

2007-01-08 Thread Julien BIBOLLET
On 1/8/07, Bill Hoffman <[EMAIL PROTECTED]> wrote: If you use ADD_SUBDIRECTORY instead of SUBDIRS it will work as you have it. -Bill Ok, thanks for this quick answer, it works like I expected now. (P.S.: I should have read the man more carefully, since it's written in it.) __

Re: [CMake] PROJECT_SOURCE_DIR needs two cMake pass to be set

2007-01-08 Thread Bill Hoffman
Julien BIBOLLET wrote: 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 co

[CMake] PROJECT_SOURCE_DIR needs two cMake pass to be set

2007-01-08 Thread Julien BIBOLLET
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) M