Skip to content

Commit 03093b6

Browse files
authored
[Polly] Fix gtest logic for standalone builds (#121114)
Fix the gtest logic to account for llvm_gtest being installed as part of LLVM, as of 91b3ca3.
1 parent a72bfc5 commit 03093b6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

polly/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ if(POLLY_STANDALONE_BUILD)
2929

3030
# Enable unit tests if available.
3131
set(POLLY_GTEST_AVAIL 0)
32-
set(UNITTEST_DIR ${LLVM_THIRD_PARTY_DIR}/unittest)
33-
if(EXISTS ${UNITTEST_DIR}/googletest/include/gtest/gtest.h)
34-
if (NOT TARGET gtest)
35-
add_subdirectory(${UNITTEST_DIR} third-party/unittest)
36-
endif()
32+
if(TARGET llvm_gtest)
3733
set(POLLY_GTEST_AVAIL 1)
3834
endif()
3935

0 commit comments

Comments
 (0)