[CMake] Order of installation items

James Bigler jamesbigler at gmail.com
Wed Mar 3 12:59:48 EST 2010


It looks as though installation of items is different than I thought it
should be.

CMakeLists.txt

  install(CODE "message(\"start\")")

  add_subdirectory(sub1)

  install(CODE "message( \"end\")")

sub1\CMakeLists.txt:

  install(CODE "message("\--sub1\")")

In this example the following output is generated during install:

start
end
--sub1

I would have expected:

start
--sub1
end

I'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.

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100303/b144c2af/attachment.htm>


More information about the CMake mailing list