From 7d4efc8152bc8bc025d8ff01ec1b8aa57aaa4265 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 7 Aug 2025 17:43:33 +0200 Subject: [PATCH] fixup --- docs/examples/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples/CMakeLists.txt b/docs/examples/CMakeLists.txt index ed0a913216..8624b5f4a3 100644 --- a/docs/examples/CMakeLists.txt +++ b/docs/examples/CMakeLists.txt @@ -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, # so it will not be used by any link operation that consumes this library 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() - 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() else()