[CMake] Rename target RUN_TESTS
Scott Aron Bloom
scott.bloom at onshorecs.com
Fri Jan 2 06:19:25 EST 2015
That doesn't work :(
Unfortunately it "could" be that I have put the custom target command in the wrong location, however, I put it as the last line in my top level CMakeLists.txt
ADD_CUSTOM_TARGET( ALL_RUN_TEST DEPENDS RUN_TESTS )
But it doesn't right mouse clicking -> build doesn't give the same results as building "RUN_TESTS"
Scott
-----Original Message-----
From: CMake [mailto:cmake-bounces at cmake.org] On Behalf Of Sylvain Joubert
Sent: Friday, January 02, 2015 2:56 AM
To: cmake at cmake.org
Subject: Re: [CMake] Rename target RUN_TESTS
Le 02/01/2015 11:43, Sylvain Joubert a écrit :
> if(MSVC)
> add_custom_target(ALL_RUN_TEST ALL DEPENDS RUN_TESTS)
> endif()
The "ALL" dependency should not be there. No need to run the tests at every compilation.
This is better:
if(MSVC)
add_custom_target(ALL_RUN_TEST DEPENDS RUN_TESTS)
endif()
Sylvain
--
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
More information about the CMake
mailing list