Make min tools version a var
@@ -3,6 +3,7 @@ if (NOT DEFINED BLIT_ONCE)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)
+ set(BLIT_MINIMUM_TOOLS_VERSION "0.2.0")
find_package(PythonInterp 3.6 REQUIRED)
@@ -16,8 +17,8 @@ if (NOT DEFINED BLIT_ONCE)
message(FATAL_ERROR "32Blit tools not found!\nInstall with: ${PYTHON_USER_EXECUTABLE} -m pip install 32blit\n")
endif()
- if("${TOOLS_VERSION}" VERSION_LESS "0.2.0")
- message(FATAL_ERROR "32Blit tools out of date!\nYou have ${TOOLS_VERSION}, we need >=0.2.0\nUpdate with: ${PYTHON_USER_EXECUTABLE} -m pip install --upgrade 32blit\n")
+ if("${TOOLS_VERSION}" VERSION_LESS "${BLIT_MINIMUM_TOOLS_VERSION}")
+ message(FATAL_ERROR "32Blit tools out of date!\nYou have ${TOOLS_VERSION}, we need >= ${BLIT_MINIMUM_TOOLS_VERSION}\nUpdate with: ${PYTHON_USER_EXECUTABLE} -m pip install --upgrade 32blit\n")
endif()
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
