mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
Utilities: Suppress warnings in third-party code when using XLClang
This commit is contained in:
@@ -2,7 +2,7 @@ project(JsonCpp CXX)
|
||||
|
||||
# Disable warnings to avoid changing 3rd party code.
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES
|
||||
"^(GNU|Clang|AppleClang|XL|VisualAge|SunPro|HP|Intel)$")
|
||||
"^(GNU|Clang|AppleClang|XLClang|XL|VisualAge|SunPro|HP|Intel)$")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w")
|
||||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "PathScale")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -woffall")
|
||||
|
||||
Reference in New Issue
Block a user