1 # Do not build unittest libraries automatically, they will be pulled in
2 # by unittests if these are built.
3 if (NOT ${LLVM_INSTALL_GTEST})
4 set (BUILDTREE_ONLY BUILDTREE_ONLY)
5 set(EXCLUDE_FROM_ALL ON)
8 add_llvm_library(LLVMTestingSupport
14 ADDITIONAL_HEADER_DIRS
15 ${LLVM_MAIN_INCLUDE_DIR}/llvm/Testing/Support
21 target_link_libraries(LLVMTestingSupport PRIVATE llvm_gtest)
23 # This is to avoid the error in gtest-death-test-internal.h
24 # (150,16): error: 'Create' overrides a member function but
25 # is not marked 'override' [-Werror,-Wsuggest-override]
26 # during self-compile on Windows.
28 if (HOST_WINNT AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" )
29 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-suggest-override")