diff options
-rw-r--r-- | tests/unit/CMakeLists.txt | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index e66679882..14589d68d 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -40,7 +40,15 @@ foreach(_testfile ${UT_SRC}) set_target_properties(${_testname} PROPERTIES COMPILE_DEFINITIONS "UNITTESTS") - add_test(NAME ${_testname} - COMMAND ${_testname} "http://www.google.com" - ) + if(HIDES_CURL_PRIVATE_SYMBOLS) + set_target_properties(${_testname} + PROPERTIES + EXCLUDE_FROM_ALL TRUE + EXCLUDE_FROM_DEFAULT_BUILD TRUE + ) + else() + add_test(NAME ${_testname} + COMMAND ${_testname} "http://www.google.com" + ) + endif() endforeach() |