Skip to content

Commit

Permalink
Merge pull request #1330 from GeorgH93/fix_policy_warning
Browse files Browse the repository at this point in the history
Specify CMake policy range to avoid deprecation warning
  • Loading branch information
Groovounet authored Dec 25, 2024
2 parents 37112e4 + f748510 commit 7d3e3cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.6 FATAL_ERROR)
cmake_policy(VERSION 3.6)
# 3.6 is the actual minimun. 3.14 as the upper policy limit avoids CMake deprecation warnings.
cmake_minimum_required(VERSION 3.6...3.14 FATAL_ERROR)
cmake_policy(VERSION 3.6...3.14)

file(READ "glm/detail/setup.hpp" GLM_SETUP_FILE)
string(REGEX MATCH "#define[ ]+GLM_VERSION_MAJOR[ ]+([0-9]+)" _ ${GLM_SETUP_FILE})
Expand Down

0 comments on commit 7d3e3cd

Please sign in to comment.