diff options
author | Brad King <brad.king@kitware.com> | 2018-10-24 12:01:36 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-24 15:51:17 -0400 |
commit | a834bcaa9100f552b7f40e2f439fe3afc972e2f1 (patch) | |
tree | eb7d39ef613cff7bca07945172719ce701a8ac91 /Utilities | |
parent | ec13ba36b5398f1d561d6e72d8e253d0eb3c2b5e (diff) | |
download | cmake-a834bcaa9100f552b7f40e2f439fe3afc972e2f1.tar.gz |
Tests: Add missing BUILD_TESTING conditions
We should not call `add_test` unless `BUILD_TESTING` is enabled.
Fixes: #18500
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmcurl/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt index 8e0378ce47..636530e2f8 100644 --- a/Utilities/cmcurl/CMakeLists.txt +++ b/Utilities/cmcurl/CMakeLists.txt @@ -1289,7 +1289,7 @@ endif() add_executable(LIBCURL curltest.c) target_link_libraries(LIBCURL cmcurl) -if(CMAKE_CURL_TEST_URL) +if(BUILD_TESTING AND CMAKE_CURL_TEST_URL) add_test(curl LIBCURL ${CMAKE_CURL_TEST_URL}) endif() |