Open ryanpeach opened 1 year ago
This makes it a bit better but I think it just prevents it from repeating itself. This has worked for all my other libraries.
# Backtrace-cpp
# Also requires one of: libbfd (gnu binutils), libdwarf, libdw (elfutils)
if(CMAKE_BUILD_TYPE MATCHES Debug)
FetchContent_Declare(backward
GIT_REPOSITORY https://github.com/bombela/backward-cpp
GIT_TAG v1.6)
FetchContent_GetProperties(backward)
# Exclude warnings from backward
if(NOT backward_POPULATED)
FetchContent_Populate(backward)
add_subdirectory(${backward_SOURCE_DIR} ${backward_BINARY_DIR} EXCLUDE_FROM_ALL)
target_compile_options(backward INTERFACE -w)
endif()
endif()
I'm trying to suppress clang-tidy warnings from this library.
I'm getting.
My relevant CMakeLists.txt lines are:
I'm using
setup_backward
to wrapadd_backward
so that it only runs on Debug. Idk if that's important or not.