Merge pull request #70 from Perlmint/feature/cmake4

Update policy max version to supress warning
This commit is contained in:
Gyusun Yeom 2025-04-13 23:14:00 +09:00 committed by GitHub
commit ac12d4d22e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.12...3.5)
cmake_minimum_required(VERSION 2.8.12...4.0)
file(STRINGS ${CMAKE_CURRENT_SOURCE_DIR}/config/version _VERSION_MAJOR_STRING REGEX "GLEW_MAJOR[ ]*=[ ]*[0-9]+.*")
string(REGEX REPLACE "GLEW_MAJOR[ ]*=[ ]*([0-9]+)" "\\1" MAJOR_VERSION ${_VERSION_MAJOR_STRING})