summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-04-01 18:39:43 (GMT)
committerBrad King <brad.king@kitware.com>2020-04-03 10:43:00 (GMT)
commita24dd93e93a6e62bf579a49a82fb57715ddb21d1 (patch)
tree7a7d01dfcda4290f63d707e2381f0d811df9e741 /Utilities/cmcurl
parent0b872fd4beee649103f0e737fca5838c2b6a1e88 (diff)
downloadCMake-a24dd93e93a6e62bf579a49a82fb57715ddb21d1.zip
CMake-a24dd93e93a6e62bf579a49a82fb57715ddb21d1.tar.gz
CMake-a24dd93e93a6e62bf579a49a82fb57715ddb21d1.tar.bz2
curl: When building inside CMake, link dependencies as PRIVATE
Diffstat (limited to 'Utilities/cmcurl')
-rw-r--r--Utilities/cmcurl/lib/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmcurl/lib/CMakeLists.txt b/Utilities/cmcurl/lib/CMakeLists.txt
index 4935926..230c7cf 100644
--- a/Utilities/cmcurl/lib/CMakeLists.txt
+++ b/Utilities/cmcurl/lib/CMakeLists.txt
@@ -100,7 +100,7 @@ if(NOT BUILD_SHARED_LIBS)
set_target_properties(${LIB_NAME} PROPERTIES INTERFACE_COMPILE_DEFINITIONS CURL_STATICLIB)
endif()
-target_link_libraries(${LIB_NAME} ${CURL_LIBS})
+target_link_libraries(${LIB_NAME} PRIVATE ${CURL_LIBS})
if(0) # This code not needed for building within CMake.
if(WIN32)