I have (what I thought was) a common environment where my build creates both programs to be installed and also test programs etc. that aren't installed.
What I hoped is for the default build with no targets specified to build everything ("all"), but if I invoke the build with the "install" target it builds only the things that are to be installed, not the test programs. Unfortunately it doesn't seem like this is possible; at least when I examine the Makefiles generated by the CMake Unix Makefiles generator, the install target depends on the preinstall target which depends on all. Is this true in general or is there something in my CMake setup that causes it? I find this very limiting: it seems clear to me that a default "all" build might create all sort of other things that aren't installed via the "install" target... I should be able to build "install" to only build those things not "all" the things. Any ideas for this? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake