Skip to content

Commit 36f878e

Browse files
committed
[CMake] Fix target_link_library syntax when asan=On
1 parent 4dbb89f commit 36f878e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roottest/cmake/modules/RoottestMacros.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ function(ROOTTEST_ADD_UNITTEST_DIR)
11771177
endif()
11781178
else()
11791179
if(TARGET ROOT::ROOTStaticSanitizerConfig)
1180-
target_link_libraries(${binary} ROOT::ROOTStaticSanitizerConfig)
1180+
target_link_libraries(${binary} PRIVATE ROOT::ROOTStaticSanitizerConfig)
11811181
endif()
11821182
endif()
11831183

0 commit comments

Comments
 (0)