[polly] 03093b6 - [Polly] Fix gtest logic for standalone builds (#121114)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 25 23:09:22 PST 2024
Author: Michał Górny
Date: 2024-12-26T07:09:18Z
New Revision: 03093b62d4c9ff43b0f9422db1ff97e5050d7664
URL: https://github.com/llvm/llvm-project/commit/03093b62d4c9ff43b0f9422db1ff97e5050d7664
DIFF: https://github.com/llvm/llvm-project/commit/03093b62d4c9ff43b0f9422db1ff97e5050d7664.diff
LOG: [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 91b3ca39667b6341a8c1983a1467fae14b58318b.
Added:
Modified:
polly/CMakeLists.txt
Removed:
################################################################################
diff --git a/polly/CMakeLists.txt b/polly/CMakeLists.txt
index b4cfc77d0f213c..955c171b3967fe 100644
--- a/polly/CMakeLists.txt
+++ b/polly/CMakeLists.txt
@@ -29,11 +29,7 @@ if(POLLY_STANDALONE_BUILD)
# Enable unit tests if available.
set(POLLY_GTEST_AVAIL 0)
- set(UNITTEST_DIR ${LLVM_THIRD_PARTY_DIR}/unittest)
- if(EXISTS ${UNITTEST_DIR}/googletest/include/gtest/gtest.h)
- if (NOT TARGET gtest)
- add_subdirectory(${UNITTEST_DIR} third-party/unittest)
- endif()
+ if(TARGET llvm_gtest)
set(POLLY_GTEST_AVAIL 1)
endif()
More information about the llvm-commits
mailing list