Skip to content

Commit

Permalink
[cmake] GTest depends on clad-aware clang.
Browse files Browse the repository at this point in the history
Make sure for to add the right dependency in cases clad is built against the
monorepo.
  • Loading branch information
vgvassilev committed Dec 1, 2024
1 parent aab8463 commit cf07998
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set_target_properties(CladUnitTests PROPERTIES FOLDER "Clad tests")
# LLVM builds (not installed llvm) provides gtest.
if (NOT TARGET gtest)
include(CladGoogleTest)
if(NOT CLAD_BUILT_STANDALONE)
add_dependencies(googletest clang)
endif()
endif()

# add_clad_unittest(test_dirname file1.cpp file2.cpp)
Expand Down

0 comments on commit cf07998

Please sign in to comment.