Skip to content

Commit

Permalink
[cmake] Provide the DISABLE_LLVM_LINK_LLVM_DYLIB tag for unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
gojakuch authored and vgvassilev committed Mar 13, 2024
1 parent cae7876 commit 2cd0b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ endif()
# Produces a binary named 'basename(test_dirname)'.
function(add_clad_unittest test_dirname)

add_unittest(CladUnitTests ${test_dirname} ${ARGN})
add_unittest(CladUnitTests ${test_dirname} ${ARGN} DISABLE_LLVM_LINK_LLVM_DYLIB)

# Remove the llvm_gtest_* coming from add_unittest.
get_target_property(GTEST_LINKED_LIBS ${test_dirname} LINK_LIBRARIES)
Expand Down

0 comments on commit 2cd0b32

Please sign in to comment.