diff --git a/bolt/CMakeLists.txt b/bolt/CMakeLists.txt index 32175d9fd15a..5c85fef162e1 100644 --- a/bolt/CMakeLists.txt +++ b/bolt/CMakeLists.txt @@ -76,7 +76,7 @@ add_subdirectory(lib) add_subdirectory(tools) if (BOLT_INCLUDE_TESTS) - if (EXISTS ${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include/gtest/gtest.h) + if (EXISTS ${LLVM_THIRD_PARTY_DIR}/unittest/googletest/include/gtest/gtest.h) add_subdirectory(unittests) list(APPEND BOLT_TEST_DEPS BoltUnitTests) endif()