summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-12-06 13:17:57 (GMT)
committerBrad King <brad.king@kitware.com>2016-12-06 13:18:33 (GMT)
commitdf7fa47c1b42a360158f0b8596d177998fd4fa2d (patch)
treef2422347d7c7f05eaaaff4b20fbe677bdab98413 /Utilities/cmcurl
parentf8a1ba202f51e70510f12f46fe0633ea908d5144 (diff)
downloadCMake-df7fa47c1b42a360158f0b8596d177998fd4fa2d.zip
CMake-df7fa47c1b42a360158f0b8596d177998fd4fa2d.tar.gz
CMake-df7fa47c1b42a360158f0b8596d177998fd4fa2d.tar.bz2
curl: Disable symbol hiding logic in build for CMake
We already disable the code using `HIDES_CURL_PRIVATE_SYMBOLS`, so skip the code to set it too, thus avoiding unnecessary `message()` calls.
Diffstat (limited to 'Utilities/cmcurl')
-rw-r--r--Utilities/cmcurl/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt
index 4a91017..262554d 100644
--- a/Utilities/cmcurl/CMakeLists.txt
+++ b/Utilities/cmcurl/CMakeLists.txt
@@ -183,7 +183,9 @@ if(MSVC)
mark_as_advanced(BUILD_RELEASE_DEBUG_DIRS)
endif()
+if(0) # This code not needed for building within CMake.
include(CurlSymbolHiding)
+endif()
option(HTTP_ONLY "disables all protocols except HTTP (This overrides all CURL_DISABLE_* options)" OFF)
mark_as_advanced(HTTP_ONLY)