[CMake] install() and EXCLUDE_FROM_ALL issue

Alexandru Ciobanu aciobanu at matrox.com
Wed Aug 1 13:56:41 EDT 2007


Hi!

Given the following simple setup:

   add_subdirectory ( lib )
   add_subdirectory ( tests EXCLUDE_FROM_ALL )

When I run make it correctly builds only the lib.

When I run "make install" it checks for the presence of *all* the 
targets including the ones from test/.

Why is that? And is that a desired?

If so, how can I separately install the lib before ( or without ) 
building the tests.

Alex Ciobanu




More information about the CMake mailing list