[CMake] Install without building unittests
Scott Bloom
scott at towel42.com
Thu Mar 28 13:22:03 EDT 2019
Just a note, for google later on… 😊
The default appears to have the variable unset, so it doesn’t show up in the list of variables in ccmake or the cmake-gui.
I also added it to my system before any INSTALL command was called. I don’t know if that is necessary, but it does work
SET( CMAKE_SKIP_INSTALL_ALL_DEPENDENCY TRUE )
Thanks again!
Scott
From: Scott Bloom <scott at towel42.com>
Sent: Thursday, March 28, 2019 10:20 AM
To: Scott Bloom <scott at towel42.com>; frodak17 <frodak17 at gmail.com>
Cc: cmake at cmake.org
Subject: RE: [CMake] Install without building unittests
THANKS!!!! That was the exact variable I was looking for.
Scott
From: CMake <cmake-bounces at cmake.org<mailto:cmake-bounces at cmake.org>> On Behalf Of Scott Bloom
Sent: Thursday, March 28, 2019 10:05 AM
To: frodak17 <frodak17 at gmail.com<mailto:frodak17 at gmail.com>>
Cc: cmake at cmake.org<mailto:cmake at cmake.org>
Subject: Re: [CMake] Install without building unittests
This variable looks very interesting.. Ill play with it and see if it solves my problems 😉
THANKS!!
Scott
From: frodak17 <frodak17 at gmail.com<mailto:frodak17 at gmail.com>>
Sent: Thursday, March 28, 2019 10:03 AM
To: Scott Bloom <scott at towel42.com<mailto:scott at towel42.com>>
Cc: Kyle Edwards <kyle.edwards at kitware.com<mailto:kyle.edwards at kitware.com>>; cmake at cmake.org<mailto:cmake at cmake.org>
Subject: Re: [CMake] Install without building unittests
On Thu, Mar 28, 2019 at 11:07 AM Scott Bloom <scott at towel42.com<mailto:scott at towel42.com>> wrote:
That is really not what we want.. We simply don’t want the Install target to have a dependency on the unittests. Essentially, the Install target should be have the same as the test target.
If you to a make test, or from VS, on RUN_TESTS, RMB->Build, it doesn’t build the tests if they are out of date (or non-existant)
Scott
I was under the impression that the global INSTALL target is only dependent on the ALL target unless you turn off the dependency.
https://cmake.org/cmake/help/v3.14/variable/CMAKE_SKIP_INSTALL_ALL_DEPENDENCY.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190328/fdfdf629/attachment.html>
More information about the CMake
mailing list