From 3608d61091fba10fea58d5efaced319ea1a06eed Mon Sep 17 00:00:00 2001 From: Julian Büning Date: Mon, 7 Feb 2022 08:16:39 +0100 Subject: fix CMake: gtest from llvm includes gtest_main --- unittests/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'unittests') diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index faf43a44..51151141 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -105,6 +105,8 @@ else() # add includes for LLVM's modifications target_include_directories(gtest BEFORE PRIVATE ${LLVM_INCLUDE_DIRS}) + # we cannot disable gtest_main, but will not use it later + target_include_directories(gtest_main BEFORE PRIVATE ${LLVM_INCLUDE_DIRS}) else() # try to find Google Test, as GTEST_SRC_DIR is not manually specified find_path(GTEST_SRC_DIR -- cgit 1.4.1