Skip to content

Commit 6d1a765

Browse files
committed
suppress -Wc++11-long-long on macOS
1 parent a1b0157 commit 6d1a765

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
5858
# TODO: fix these?
5959
add_compile_options(-Wno-padded -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shorten-64-to-32 -Wno-shadow-field-in-constructor)
6060

61+
if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
62+
add_compile_options(-Wno-c++11-long-long)
63+
endif()
64+
6165
if (CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 14 OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 14)
6266
# TODO: verify this regression still exists in clang-15
6367
if (CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")

0 commit comments

Comments
 (0)