]> git.lizzy.rs Git - irrlicht.git/commitdiff
Fix version variable bug
authorJosiahWI <41302989+JosiahWI@users.noreply.github.com>
Mon, 23 Aug 2021 14:44:06 +0000 (09:44 -0500)
committersfan5 <sfan5@live.de>
Mon, 23 Aug 2021 15:10:23 +0000 (17:10 +0200)
The variables had the wrong names, and wouldn't work properly.

CMakeLists.txt

index eb90eaba24a97dac6b7e62fc61d45e79e6b67075..2ecb9f7d373a9f30c3b556c3d04f982020091ee2 100644 (file)
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.5)
 
 # Set policies up to 3.9 since we want to enable the IPO option
 if(${CMAKE_VERSION} VERSION_LESS 3.9)
-       cmake_policy(VERSION ${CMAKE_VERSION_MAJOR}.${CMAKE_VERSION_MINOR})
+       cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
 else()
        cmake_policy(VERSION 3.9)
 endif()