mirror of
https://github.com/g-truc/glm.git
synced 2026-06-08 02:23:48 +00:00
Specify CMake policy range to avoid deprecation warning
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user