mirror of
				https://github.com/Perlmint/glew-cmake.git
				synced 2025-11-03 22:04:16 +00:00 
			
		
		
		
	CMake: Fixed minimal version warning on recent CMake
``` CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. ```
This commit is contained in:
		
							parent
							
								
									9758219375
								
							
						
					
					
						commit
						bfe27f1ed1
					
				@ -1,4 +1,4 @@
 | 
			
		||||
cmake_minimum_required(VERSION 2.8.12)
 | 
			
		||||
cmake_minimum_required(VERSION 2.8.12...3.5)
 | 
			
		||||
 | 
			
		||||
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})
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user