Commit 5cd9f8f6 authored by GILLES Sebastien's avatar GILLES Sebastien

#1396 Modify CMake to reflect the fact AppleClang has caught up on warnings compared to LLVM Clang.

parent bf990e35
......@@ -52,6 +52,8 @@ if(${CMAKE_C_COMPILER_ID} STREQUAL "AppleClang" OR ${CMAKE_C_COMPILER_ID} STREQU
add_cxx_compiler_flag("-Wno-documentation-unknown-command")
add_cxx_compiler_flag("-Wno-undefined-func-template")
add_cxx_compiler_flag("-Wno-c++1z-extensions")
add_cxx_compiler_flag("-Wno-return-std-move-in-c++11")
if (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
add_definitions(-D_LIBCPP_DEBUG2=0) # Additional checks such as index out of bounds in vectors in libc++; might
......@@ -61,9 +63,7 @@ if(${CMAKE_C_COMPILER_ID} STREQUAL "AppleClang" OR ${CMAKE_C_COMPILER_ID} STREQU
# Convenient macro to tag LLVM clang; useful as some warnings needs to be suppressed only for this more recent version of clang.
if (${CMAKE_C_COMPILER_ID} STREQUAL "Clang")
add_cxx_compiler_flag("-Wno-unused-template")
add_definitions(-DMOREFEM_LLVM_CLANG)
add_cxx_compiler_flag("-Wno-return-std-move")
add_cxx_compiler_flag("-Wno-return-std-move-in-c++11")
add_definitions(-DMOREFEM_LLVM_CLANG)
endif()
# GOMP is required when sanitizer is used for gcc, but is not known is macOS hence this variable.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment