CMake: Fix building with AppleClang compiler

This commit is contained in:
Carlos César Neves Enumo 2021-04-30 00:04:59 -03:00 committed by Linus Groh
parent 8ae0794584
commit d142ca4c85
Notes: sideshowbarker 2024-07-18 18:53:03 +09:00

View file

@ -81,7 +81,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
add_compile_options(-Wno-literal-suffix) add_compile_options(-Wno-literal-suffix)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_compile_options(-fconcepts) add_compile_options(-fconcepts)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang$")
add_compile_options(-Wno-overloaded-virtual -Wno-user-defined-literals) add_compile_options(-Wno-overloaded-virtual -Wno-user-defined-literals)
endif() endif()