mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-18 08:51:52 +08:00
curl: When building inside CMake, link dependencies as PRIVATE
This commit is contained in:
@@ -100,7 +100,7 @@ if(NOT BUILD_SHARED_LIBS)
|
|||||||
set_target_properties(${LIB_NAME} PROPERTIES INTERFACE_COMPILE_DEFINITIONS CURL_STATICLIB)
|
set_target_properties(${LIB_NAME} PROPERTIES INTERFACE_COMPILE_DEFINITIONS CURL_STATICLIB)
|
||||||
endif()
|
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(0) # This code not needed for building within CMake.
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
Reference in New Issue
Block a user