Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
azimafroozeh committed Sep 12, 2024
1 parent 214c98e commit 3440974
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ 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)
Expand Down

0 comments on commit 3440974

Please sign in to comment.