Skip to content
This repository was archived by the owner on Mar 22, 2020. It is now read-only.

Commit 25e3fe7

Browse files
committed
Disable '-Wc++11-narrowing' for Clang
1 parent da58fdd commit 25e3fe7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ if(IOS)
9898
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -O3 -fomit-frame-pointer -ffast-math")
9999
endif()
100100

101+
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
102+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-narrowing")
103+
endif()
104+
101105
if(MSVC)
102106
set(CMAKE_USE_RELATIVE_PATHS ON CACHE INTERNAL "" FORCE)
103107
endif()

0 commit comments

Comments
 (0)