Skip to content

Commit

Permalink
Make conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvassilev committed Apr 19, 2024
1 parent 0435569 commit 2f40f93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ endif()
# Produces a binary named 'basename(test_dirname)'.
function(add_clad_unittest test_dirname)

add_unittest(CladUnitTests ${test_dirname} ${ARGN})
if (LLVM_LINK_LLVM_DYLIB)
set(no_libllvm_so DISABLE_LLVM_LINK_LLVM_DYLIB)
endif(LLVM_LINK_LLVM_DYLIB)

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

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

0 comments on commit 2f40f93

Please sign in to comment.