Skip to content

Commit 7d3e3cd

Browse files
authored
Merge pull request #1330 from GeorgH93/fix_policy_warning
Specify CMake policy range to avoid deprecation warning
2 parents 37112e4 + f748510 commit 7d3e3cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
cmake_minimum_required(VERSION 3.6 FATAL_ERROR)
2-
cmake_policy(VERSION 3.6)
1+
# 3.6 is the actual minimun. 3.14 as the upper policy limit avoids CMake deprecation warnings.
2+
cmake_minimum_required(VERSION 3.6...3.14 FATAL_ERROR)
3+
cmake_policy(VERSION 3.6...3.14)
34

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

0 commit comments

Comments
 (0)