Hi,<br>I&#39;ve simplified a problem I&#39;m encountering:<br>I have following hierarchie:<br><span style="font-family: courier new,monospace;">|--proj1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">

|--|--CMakeLists.txt</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">|--CMakeLists.txt</span><br><br>the proj1/CMakeLists.txt contains:<br><span style="font-family: courier new,monospace;">

PROJECT( PROJ1 )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">SET( PROJ1_SRCS main.cc )</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">ADD_LIBRARY( PROJ1 STATIC ${PROJ1_SRCS} )</span><br><br>and the ./CMakeLists.txt contains:<br><span style="font-family: courier new,monospace;">SUBDIRS(proj1)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">MESSAGE ( STATUS &quot;PROJ1_SOURCE_DIR: ${PROJ1_SOURCE_DIR}&quot;)</span><br><br>now,
when I run a cmake ., the PROJ1_SOURCE_DIR value is &quot;&quot;, 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 ?
<br><br>Thanks