Add -Wno-idiomatic-parentheses flag for Clang
This commit is contained in:
parent
3f83bd0044
commit
4437f3bf65
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ include(ConfigureChecks.cmake)
|
||||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
# using Clang
|
# using Clang
|
||||||
|
|
||||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -stdlib=libc++")
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-idiomatic-parentheses -pedantic -stdlib=libc++")
|
||||||
|
|
||||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||||
# using G++
|
# using G++
|
||||||
|
|
Loading…
Reference in a new issue