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

From: Kyle Edwards <[email protected]>
Sent: Thursday, March 28, 2019 7:48 AM
To: Scott Bloom <[email protected]>; [email protected]
Subject: Re: [CMake] Install without building unittests

You could build CMake with -DBUILD_TESTING=OFF. This will skip the unit tests 
altogether.

Kyle

On Thu, 2019-03-28 at 02:24 +0000, Scott Bloom wrote:
Note, Im running from inside visual studio…  I do realize for a makefile based 
system, I can run make install from inside the executable’s build directory

From: CMake <[email protected]<mailto:[email protected]>> On Behalf 
Of Scott Bloom
Sent: Wednesday, March 27, 2019 7:23 PM
To: [email protected]<mailto:[email protected]>
Subject: [CMake] Install without building unittests

I asked this a couple of years ago, and the answer was “no”…

If you run tests, it doesn’t automatically build tests…  So why does an install?

I would never release something into the wild with out running the tests…

But, for developer builds, were we need to install all the packages in order to 
run the applications, sometimes I just want to test the GUI which requires an 
install of the core application into the correct location, without building the 
1500+ (yes 1500) unittests, which can take 15-20 minutes to build on their own…

Is there anyway to break the dependency??

Scott

--



Powered by www.kitware.com<http://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
-- 

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

Reply via email to