summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-10-25 11:25:05 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-10-25 11:25:13 (GMT)
commit89ab893469576e3cd164019b80bc96daee2ce9b1 (patch)
treeeb631f0872784b4b33a81562d9a8bf4f436e618f /Utilities
parent60264705b945f9b1f91c58a52c2974c1399a97b0 (diff)
parenta834bcaa9100f552b7f40e2f439fe3afc972e2f1 (diff)
downloadCMake-89ab893469576e3cd164019b80bc96daee2ce9b1.zip
CMake-89ab893469576e3cd164019b80bc96daee2ce9b1.tar.gz
CMake-89ab893469576e3cd164019b80bc96daee2ce9b1.tar.bz2
Merge topic 'fix-no-testing'
a834bcaa91 Tests: Add missing BUILD_TESTING conditions Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Dan Ibanez <daibane@sandia.gov> Merge-request: !2520
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmcurl/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt
index 8e0378c..636530e 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()