From 43303323a06074273ebca7727b8b84929bde76ec Mon Sep 17 00:00:00 2001 From: Robert Adam Date: Fri, 17 Dec 2021 17:23:16 +0100 Subject: [PATCH] CMake: Mark include directories as SYSTEM This usually prevents the compiler from emitting warnings about stuff it found in the included files. Since the CMakeLists.txt seems to be exclusively meant for code that is making use of Tracy rather than Tracy itself using it to build, silencing the warnings should probably be what most folks would want. This will prevent things like #126 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ce57f6f..1b0ef97a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ find_package(Threads REQUIRED) add_library(TracyClient TracyClient.cpp) target_compile_features(TracyClient PUBLIC cxx_std_11) -target_include_directories(TracyClient PUBLIC +target_include_directories(TracyClient SYSTEM PUBLIC $ $) target_link_libraries( @@ -73,4 +73,4 @@ install(FILES ${includes} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) install(EXPORT TracyConfig FILE TracyConfig.cmake - DESTINATION share/Tracy) \ No newline at end of file + DESTINATION share/Tracy)