From 1058d59fe488fa42fdfc56da34217173bf011f9c Mon Sep 17 00:00:00 2001
From: Christophe <christophe@lunarg.com>
Date: Tue, 6 Feb 2024 15:50:46 +0100
Subject: [PATCH] Fixed C++ language auto detection build, disable C++98
 warnings with Clang #1235, #1231

---
 CMakeLists.txt | 11 +++++++++++
 readme.md      |  5 +++++
 2 files changed, 16 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d9e500976..217b76bf3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,6 +88,17 @@ elseif(GLM_ENABLE_CXX_98)
 	if(NOT GLM_QUIET)
 		message(STATUS "GLM: Build with C++98 features")
 	endif()
+
+else()
+	if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+		message(STATUS "GLM: Disable -Wc++98-compat warnings")
+		add_compile_options(-Wno-c++98-compat)
+		add_compile_options(-Wno-c++98-compat-pedantic)
+	endif()
+	if(NOT GLM_QUIET)
+		message(STATUS "GLM: Build with C++ features auto detection")
+	endif()
+
 endif()
 
 option(GLM_ENABLE_LANG_EXTENSIONS "Enable language extensions" OFF)
diff --git a/readme.md b/readme.md
index 17aa4ea17..7d72bf064 100644
--- a/readme.md
+++ b/readme.md
@@ -105,6 +105,11 @@ target_link_libraries(main PRIVATE glm::glm)
 
 ## Release notes
 
+### [GLM 1.0.1](https://github.com/g-truc/glm) - 2024-XX-XX
+
+#### Fixes:
+- Fixed C++ language auto detection build, disable C++98 warnings with Clang #1235, #1231
+
 ### [GLM 1.0.0](https://github.com/g-truc/glm/releases/tag/1.0.0) - 2024-01-24
 #### Features:
 - Added *GLM_EXT_scalar_reciprocal* with tests