Fix for AppleClang 12

This commit is contained in:
Vladyslav Usenko 2021-11-21 18:53:43 +01:00
parent 08aab6bcde
commit 227447e74c
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ endif()
if(APPLE AND CMAKE_SYSTEM_VERSION VERSION_GREATER_EQUAL 18.0.0) if(APPLE AND CMAKE_SYSTEM_VERSION VERSION_GREATER_EQUAL 18.0.0)
target_compile_options(pangolin PRIVATE "-Wno-deprecated-declarations") target_compile_options(pangolin PRIVATE "-Wno-deprecated-declarations")
if(CMAKE_CXX_COMPILER_ID "AppleClang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 12.0.0) if(CMAKE_CXX_COMPILER_ID "AppleClang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0.0)
target_compile_options(pangolin PRIVATE "-Wno-deprecated-copy") target_compile_options(pangolin PRIVATE "-Wno-deprecated-copy")
endif() endif()