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 8536759
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8536759

Please sign in to comment.