From eb7cd029ada84848a1cc546717c1c9939aa59663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Wed, 30 Dec 2020 17:40:57 +0100 Subject: [PATCH] Silence "unused command line argument" warnings when using distcc --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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)