[CMake] Rename target RUN_TESTS

Sylvain Joubert joubert.sy at gmail.com
Fri Jan 2 05:55:48 EST 2015


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


More information about the CMake mailing list