Fix version variable bug

The variables had the wrong names, and wouldn't work properly.
This commit is contained in:
JosiahWI 2021-08-23 09:44:06 -05:00 committed by sfan5
parent 1aab3db68b
commit f9078a6a12

@ -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()