This commit is contained in:
Viktor Szakats 2025-08-07 17:43:33 +02:00
parent ed261c0915
commit 7d4efc8152
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -52,9 +52,9 @@ foreach(_target IN LISTS check_PROGRAMS _all) # keep '_all' last
# warning LNK4221: This object file does not define any previously undefined public symbols, # warning LNK4221: This object file does not define any previously undefined public symbols,
# so it will not be used by any link operation that consumes this library # so it will not be used by any link operation that consumes this library
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.13) if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.13)
target_link_options(curl-examples-build PRIVATE "-ignore:4006" "-ignore:4221") set_target_properties(curl-examples-build PROPERTIES STATIC_LIBRARY_OPTIONS "-ignore:4006" "-ignore:4221")
else() else()
target_link_libraries(curl-examples-build PRIVATE "-ignore:4006" "-ignore:4221") set_target_properties(curl-examples-build PROPERTIES STATIC_LIBRARY_FLAGS "-ignore:4006" "-ignore:4221")
endif() endif()
endif() endif()
else() else()