Skip to content

Commit

Permalink
Fixed C++ language auto detection build, disable C++98 warnings with …
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-lunarg authored and Zuzu-Typ committed Oct 11, 2024
1 parent 9323b45 commit 6cbb851
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6cbb851

Please sign in to comment.