mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 19:44:38 +08:00
[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 91b3ca3966.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user