From c1d2272bb0bef229ae87a6b6973c71c055bd04b6 Mon Sep 17 00:00:00 2001 From: Christophe Date: Tue, 16 Jan 2024 17:38:00 +0100 Subject: [PATCH] gne --- CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index de59bb1f7..487a9be5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) if(GLM_ENABLE_CXX_20) set(CMAKE_CXX_STANDARD 20) add_definitions(-DGLM_FORCE_CXX20) - if(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang") + if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") + message(STATUS "GLM: Disable -Wc++98-compat warnings") add_compile_options(-Wc++98-compat) endif() if(NOT GLM_QUIET) @@ -47,7 +48,8 @@ if(GLM_ENABLE_CXX_20) elseif(GLM_ENABLE_CXX_17) set(CMAKE_CXX_STANDARD 17) add_definitions(-DGLM_FORCE_CXX17) - if(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang") + if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") + message(STATUS "GLM: Disable -Wc++98-compat warnings") add_compile_options(-Wc++98-compat) endif() if(NOT GLM_QUIET) @@ -57,7 +59,8 @@ elseif(GLM_ENABLE_CXX_17) elseif(GLM_ENABLE_CXX_14) set(CMAKE_CXX_STANDARD 14) add_definitions(-DGLM_FORCE_CXX14) - if(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang") + if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") + message(STATUS "GLM: Disable -Wc++98-compat warnings") add_compile_options(-Wc++98-compat) endif() if(NOT GLM_QUIET) @@ -67,7 +70,8 @@ elseif(GLM_ENABLE_CXX_14) elseif(GLM_ENABLE_CXX_11) set(CMAKE_CXX_STANDARD 11) add_definitions(-DGLM_FORCE_CXX11) - if(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang") + if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") + message(STATUS "GLM: Disable -Wc++98-compat warnings") add_compile_options(-Wc++98-compat) endif() if(NOT GLM_QUIET)