Skip to content

Commit 1d314a8

Browse files
committed
suppress -Wc++11-long-long on macOS
1 parent 9f80d71 commit 1d314a8

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
@@ -39,6 +39,10 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
3939
# TODO: fix these?
4040
add_compile_options(-Wno-padded -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shorten-64-to-32 -Wno-shadow-field-in-constructor)
4141

42+
if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
43+
add_compile_options(-Wno-c++11-long-long)
44+
endif()
45+
4246
if (CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 14 OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 14)
4347
# TODO: verify this regression still exists in clang-15
4448
if (CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")

0 commit comments

Comments
 (0)