From 853675949f7605a967b5f3b4ff808396e635c9f2 Mon Sep 17 00:00:00 2001 From: Azim Afroozeh Date: Thu, 12 Sep 2024 14:59:36 +0200 Subject: [PATCH] try this --- example/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 5c3128e..5b87925 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -4,6 +4,13 @@ target_link_libraries(cpp_example PUBLIC fastlanes) target_compile_options(cpp_example PRIVATE "-fsanitize=address") target_link_options(cpp_example PRIVATE "-fsanitize=address") +# Check if the system is Windows +if (CMAKE_SYSTEM_NAME STREQUAL "Windows") + # Set the linker flag only for this specific target + target_compile_options(cpp_example PRIVATE -fuse-ld=lld) +endif () + + # C Example : ---------------------------------------------------------------------------------------------------------- add_executable(c_api ${CMAKE_CURRENT_SOURCE_DIR}/c_api.c) target_link_libraries(c_api PUBLIC fastlanes)