summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-11-01 12:35:48 (GMT)
committerBrad King <brad.king@kitware.com>2018-11-01 12:55:50 (GMT)
commit03bf934fbe93ef04d6c62c64912d2f212db997b7 (patch)
tree598a8e9f3d43ddd46904afb5babb58a2a2a95646 /Utilities/cmcurl/CMakeLists.txt
parent2b3c1bb9b014cf34ab882b8ab9569846c274cc8a (diff)
downloadCMake-03bf934fbe93ef04d6c62c64912d2f212db997b7.zip
CMake-03bf934fbe93ef04d6c62c64912d2f212db997b7.tar.gz
CMake-03bf934fbe93ef04d6c62c64912d2f212db997b7.tar.bz2
curl: Modernize tiny test code used for build inside CMake
Drop unused code. Report the error message on failure. Format the source file using clang-format.
Diffstat (limited to 'Utilities/cmcurl/CMakeLists.txt')
-rw-r--r--Utilities/cmcurl/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt
index 2d6def4..27b7507 100644
--- a/Utilities/cmcurl/CMakeLists.txt
+++ b/Utilities/cmcurl/CMakeLists.txt
@@ -1285,11 +1285,11 @@ endif()
#-----------------------------------------------------------------------------
# CMake-specific curl code.
-add_executable(LIBCURL curltest.c)
-target_link_libraries(LIBCURL cmcurl)
+add_executable(curltest curltest.c)
+target_link_libraries(curltest cmcurl)
if(BUILD_TESTING AND CMAKE_CURL_TEST_URL)
- add_test(curl LIBCURL ${CMAKE_CURL_TEST_URL})
+ add_test(curl curltest ${CMAKE_CURL_TEST_URL})
endif()
install(FILES COPYING DESTINATION ${CMAKE_DOC_DIR}/cmcurl)