[CMake] Install without building unittests

Scott Bloom scott at towel42.com
Thu Mar 28 13:05:13 EDT 2019


This variable looks very interesting.. Ill play with it and see if it solves my problems 😉

THANKS!!

Scott

From: frodak17 <frodak17 at gmail.com>
Sent: Thursday, March 28, 2019 10:03 AM
To: Scott Bloom <scott at towel42.com>
Cc: Kyle Edwards <kyle.edwards at kitware.com>; 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/79bd5f92/attachment.html>


More information about the CMake mailing list