Debian Codegraph @

lldb/unittests/API/CMakeLists.txt

raw
1 add_lldb_unittest(APITests
2 SBCommandInterpreterTest.cpp
3 SBLineEntryTest.cpp
4 SBMutexTest.cpp
5
6 LINK_LIBS
7 liblldb
8 )
9
10 # Build with -Wdocumentation. This relies on the tests including all the API
11 # headers through API/LLDB.h.
12 check_cxx_compiler_flag("-Wdocumentation"
13 CXX_SUPPORTS_DOCUMENTATION)
14 if (CXX_SUPPORTS_DOCUMENTATION)
15 target_compile_options(APITests
16 PRIVATE -Wdocumentation)
17 endif()
18
19 # Apply -Wno-documentation-deprecated-sync while we migrate away from
20 # report_fatal_error in llvm/include/llvm/Support/ErrorHandling.h
21 # and llvm/include/llvm/Support/Error.h.
22 # Remove this block of code when the migration is complete.
23 # See https://github.com/llvm/llvm-project/issues/138914.
24 check_cxx_compiler_flag("-Wno-documentation-deprecated-sync"
25 CXX_SUPPORTS_NO_DOCUMENTATION_DEPRECATED_SYNC)
26 if (CXX_SUPPORTS_NO_DOCUMENTATION_DEPRECATED_SYNC)
27 target_compile_options(APITests
28 PRIVATE -Wno-documentation-deprecated-sync)
29 endif()
30
31 if(Python3_RPATH)
32 set_property(TARGET APITests APPEND PROPERTY BUILD_RPATH "${Python3_RPATH}")
33 endif()