There is currently no way to exclude a component install() from a full
installation. Current workarounds using OPTIONAL do not work reliably
because they depend on previous builds and on the order of the execution of
the
build and install commands for the components and the default target
Let us take an example of a project that has some tests in a component that
need to be installed into a dedicated test package. The user expectation is
that the result could be achieved by typing the following:
make
make tests
make install
DESTDIR=/testpkgs make install-tests
However this results in test components in the default installation as well
as the testpkg
Judging by questions on the mail list, users typically try to overcome this
problem by adding the EXCLUDE_FROM_ALL keyword to the install() command but
this is currently unsupported. The patch uploaded to the issue tracker
provides support for it.
Brad has further suggested that the install(EXCLUDE_FROM_ALL) should be
implicitly set when installing components built with
add_executable/library(EXCLUDE_FROM_ALL)
I welcome your views on these ideas
https://cmake.org/Bug/view.php?id=14921
Best Regards
Nick
--
Nick Lewis
[email protected]
+44 1684 277137 <+441684277137>
www.amag.com
AMAG Technology, Challenge House, International Drive, Tewkesbury Business
Park, TEWKESBURY, GL20 8UQ, U.K.
--
This company is part of the G4S group of companies. This communication
contains information which may be confidential, personal and/or privileged.
It is for the exclusive use of the intended recipient(s). If you are not
the intended recipient(s), please note that any distribution, forwarding,
copying or use of this communication or the information in it is strictly
prohibited. Any personal views expressed in this e-mail are those of the
individual sender and the Company does not endorse or accept responsibility
for them. Prior to taking any action based upon this e-mail message, you
should seek appropriate confirmation of its authenticity. This message has
been checked for viruses on behalf of the Company.
--
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:
http://public.kitware.com/mailman/listinfo/cmake-developers