mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:53:32 +03:00
cmake: fix generator expression in docs/examples
To pass the MSVC-specific macro to MSVC only. Closes #17767
This commit is contained in:
parent
f9656445ba
commit
d2a408587a
1 changed files with 1 additions and 1 deletions
|
|
@ -33,6 +33,6 @@ foreach(_target IN LISTS check_PROGRAMS)
|
|||
add_executable(${_target_name} EXCLUDE_FROM_ALL "${_target}.c")
|
||||
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>")
|
||||
target_compile_definitions(${_target_name} PRIVATE "CURL_NO_OLDIES" "$<$<BOOL:${MSVC}>:_CRT_SECURE_NO_DEPRECATE>")
|
||||
set_target_properties(${_target_name} PROPERTIES OUTPUT_NAME "${_target}" PROJECT_LABEL "Example ${_target}" UNITY_BUILD OFF)
|
||||
endforeach()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue