CMake: Cleanup CMake pre-3.0 support code

This commit is contained in:
Alexander Akulich 2023-10-06 19:07:36 +03:00
parent 62b9338ba4
commit abb1d4d18c

View file

@ -22,12 +22,7 @@ else()
message(FATAL_ERROR "Couldn't parse version from src/game/version.h")
endif()
# Extra support for CMake pre-3.0
if(VERSION_PATCH STREQUAL "0")
project(DDNet VERSION ${VERSION_MAJOR}.${VERSION_MINOR})
else()
project(DDNet VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
endif()
project(DDNet VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
set(ORIGINAL_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
set(ORIGINAL_CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES})