Disable testing if BUILD_TESTING is switched off
This is an "official" switch for disable testing; our own code which adds tests should adhere to it. (It is added by CTest)
This commit is contained in:
parent
2dac509c97
commit
ea973849e0
@ -196,8 +196,10 @@ if (COMMAND tests_hook)
|
||||
endif (COMMAND tests_hook)
|
||||
|
||||
# make datafiles necessary for tests available in output directory
|
||||
opm_data (tests datafiles "${tests_DIR}")
|
||||
opm_compile_satellites (${project} tests "" "${tests_REGEXP}")
|
||||
if (BUILD_TESTING)
|
||||
opm_data (tests datafiles "${tests_DIR}")
|
||||
opm_compile_satellites (${project} tests "" "${tests_REGEXP}")
|
||||
endif (BUILD_TESTING)
|
||||
|
||||
# use this target to run all tests
|
||||
add_custom_target (check
|
||||
|
Loading…
Reference in New Issue
Block a user