summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-12-30 17:40:57 +0100
committerLéo Lam <leo@leolam.fr>2020-12-30 19:17:41 +0100
commiteb7cd029ada84848a1cc546717c1c9939aa59663 (patch)
tree4a1170f8266f33e049553ea15625f82c008723c3 /CMakeLists.txt
parentae959af71ee95bfe5254a0e6d717ce0df5a064e2 (diff)
Silence "unused command line argument" warnings when using distcc
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 91a53ea0..4da99038 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,10 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_compile_options(-fdiagnostics-color=always)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_compile_options(-fcolor-diagnostics)
+ # Required to silence "unused argument" warnings for -stdlib=libc++ when using distcc
+ add_compile_options(-Wno-unused-command-line-argument)
+ # Required to fix source paths in debug info when using distcc
+ add_compile_options(-fdebug-prefix-map=/tmp=${CMAKE_CURRENT_BINARY_DIR})
endif()
set(CMAKE_CXX_STANDARD 17)