[lldb/unittests/CMakeLists.txt] Remove extra compiler flag `-include gtest_common...
authorArgyrios Kyrtzidis <kyrtzidis@apple.com>
Thu, 1 Dec 2022 00:12:35 +0000 (16:12 -0800)
committerArgyrios Kyrtzidis <kyrtzidis@apple.com>
Fri, 2 Dec 2022 18:45:49 +0000 (10:45 -0800)
This doesn't seem to be necessary anymore so remove it to be more consistent with rest of the LLVM projects
that don't use prefix headers.

Differential Revision: https://reviews.llvm.org/D139058

lldb/unittests/CMakeLists.txt

index e29bc8d..c084fa5 100644 (file)
@@ -10,13 +10,6 @@ if (CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG)
   add_compile_options("-Wno-suggest-override")
 endif()
 
-set(LLDB_GTEST_COMMON_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/gtest_common.h)
-if (MSVC)
-  list(APPEND LLVM_COMPILE_FLAGS /FI ${LLDB_GTEST_COMMON_INCLUDE})
-else ()
-  list(APPEND LLVM_COMPILE_FLAGS -include ${LLDB_GTEST_COMMON_INCLUDE})
-endif ()
-
 function(add_lldb_unittest test_name)
   cmake_parse_arguments(ARG
     ""