Skip to content

Commit eac115c

Browse files
committed
Fix missing sanitizer link options for targets
1 parent 5e0b72f commit eac115c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/Sanitizers.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ endif()
1111
function(enable_sanitizers target)
1212
if(CMAKE_BUILD_TYPE STREQUAL "Sanitize")
1313
target_compile_options(${target} PRIVATE ${SANITIZER_FLAGS})
14+
target_link_options(${target} PRIVATE ${SANITIZER_FLAGS})
1415
message(STATUS "✅\tEnabled sanitizers for target ${target}")
1516
endif()
1617
endfunction()

0 commit comments

Comments
 (0)