Fixed C++ language auto detection build, disable C++98 warnings with Clang #1235, #1231

This commit is contained in:
Christophe 2024-02-06 15:50:46 +01:00 committed by Christophe
parent 31a5f56a7c
commit b251b22d00
2 changed files with 16 additions and 0 deletions

View File

@ -88,6 +88,17 @@ elseif(GLM_ENABLE_CXX_98)
if(NOT GLM_QUIET) if(NOT GLM_QUIET)
message(STATUS "GLM: Build with C++98 features") message(STATUS "GLM: Build with C++98 features")
endif() 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() endif()
option(GLM_ENABLE_LANG_EXTENSIONS "Enable language extensions" OFF) option(GLM_ENABLE_LANG_EXTENSIONS "Enable language extensions" OFF)

View File

@ -105,6 +105,11 @@ target_link_libraries(main PRIVATE glm::glm)
## Release notes ## 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 ### [GLM 1.0.0](https://github.com/g-truc/glm/releases/tag/1.0.0) - 2024-01-24
#### Features: #### Features:
- Added *GLM_EXT_scalar_reciprocal* with tests - Added *GLM_EXT_scalar_reciprocal* with tests