AMDGPU: Mark test as XFAIL in expensive_checks builds
[llvm-project.git] / llvm / lib / Testing / Support / CMakeLists.txt
blob6955271239ca640ddf80c378c5c1f6c9eb2f8a2e
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)
6 endif()
8 add_llvm_library(LLVMTestingSupport
9   Error.cpp
10   SupportHelpers.cpp
12   ${BUILDTREE_ONLY}
14   ADDITIONAL_HEADER_DIRS
15   ${LLVM_MAIN_INCLUDE_DIR}/llvm/Testing/Support
17   LINK_COMPONENTS
18   Support
19   )
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")
30 endif()