mirror of
https://github.com/curl/curl.git
synced 2026-08-03 15:20:56 +03:00
cmake: drop passing redundant CURL_STATICLIB in examples and clients
It's set implicitly via libcurl. Closes #17655
This commit is contained in:
parent
9b7c488f17
commit
9e3492690b
2 changed files with 0 additions and 6 deletions
|
|
@ -34,8 +34,5 @@ foreach(_target IN LISTS check_PROGRAMS)
|
|||
add_dependencies(curl-examples ${_target_name})
|
||||
target_link_libraries(${_target_name} ${LIB_SELECTED} ${CURL_LIBS})
|
||||
target_compile_definitions(${_target_name} PRIVATE "CURL_NO_OLDIES" "$<$<BOOL:MSVC>:_CRT_SECURE_NO_DEPRECATE>")
|
||||
if(LIB_SELECTED STREQUAL LIB_STATIC AND WIN32)
|
||||
set_property(TARGET ${_target_name} APPEND PROPERTY COMPILE_DEFINITIONS "CURL_STATICLIB")
|
||||
endif()
|
||||
set_target_properties(${_target_name} PROPERTIES OUTPUT_NAME "${_target}" PROJECT_LABEL "Example ${_target}" UNITY_BUILD OFF)
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -52,7 +52,4 @@ target_include_directories(clients PRIVATE
|
|||
target_link_libraries(clients ${LIB_SELECTED} ${CURL_LIBS})
|
||||
set_property(TARGET clients APPEND PROPERTY COMPILE_DEFINITIONS "CURL_NO_OLDIES"
|
||||
"$<$<BOOL:MSVC>:_CRT_SECURE_NO_DEPRECATE>")
|
||||
if(LIB_SELECTED STREQUAL LIB_STATIC AND WIN32)
|
||||
set_property(TARGET clients APPEND PROPERTY COMPILE_DEFINITIONS "CURL_STATICLIB")
|
||||
endif()
|
||||
set_target_properties(clients PROPERTIES OUTPUT_NAME "${BUNDLE}" PROJECT_LABEL "Test ${BUNDLE}" UNITY_BUILD OFF)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue