mirror of
https://github.com/zeldaret/botw
synced 2026-07-07 21:30:57 -04:00
Silence "unused command line argument" warnings when using distcc
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user