It looks as though installation of items is different than I thought it should be.<br><br>CMakeLists.txt<br><br>  install(CODE &quot;message(\&quot;start\&quot;)&quot;)<br><br>  add_subdirectory(sub1)<br><br>  install(CODE &quot;message( \&quot;end\&quot;)&quot;)<br>

<br>sub1\CMakeLists.txt:<br><br>  install(CODE &quot;message(&quot;\--sub1\&quot;)&quot;)<br><br>In this example the following output is generated during install:<br><br>start<br>end<br>--sub1<br><br>I would have expected:<br>

<br>start<br>--sub1<br>end<br><br>I&#39;m surprised that it is running all the install commands for the top level cmake before doing the commands in the sub directory.  I would have expected the install commands to be run in script order.<br>

<br>James<br>