diff --git a/CMakeLists.txt b/CMakeLists.txt index be0aa89af0..e61b56b045 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,10 @@ IF(COMMAND cmake_policy) IF(POLICY CMP0020) CMAKE_POLICY(SET CMP0020 NEW) ENDIF() + + IF (POLICY CMP0048) + cmake_policy(SET CMP0048 NEW) + ENDIF () ENDIF() @@ -81,11 +85,11 @@ ELSE() SET(CURRENT_YEAR "2019") ENDIF() -PROJECT(RyzomCore CXX C) -SET(NL_VERSION_MAJOR 4) -SET(NL_VERSION_MINOR 1) -SET(NL_VERSION_PATCH 0 CACHE STRING "Patch version") -SET(NL_VERSION_BUILD 0 CACHE STRING "Build number") +PROJECT(RyzomCore VERSION 4.1.0.0 LANGUAGES CXX C) +SET(NL_VERSION_MAJOR ${RyzomCore_VERSION_MAJOR}) +SET(NL_VERSION_MINOR ${RyzomCore_VERSION_MINOR}) +SET(NL_VERSION_PATCH ${RyzomCore_VERSION_PATCH} CACHE STRING "Patch version") +SET(NL_VERSION_BUILD ${RyzomCore_VERSION_TWEAK} CACHE STRING "Build number") SET(YEAR "2001-${CURRENT_YEAR}") SET(AUTHOR "Winch Gate and The Ryzom Core Community") diff --git a/nel/CMakeLists.txt b/nel/CMakeLists.txt index e080c640c2..1392c6dbd2 100644 --- a/nel/CMakeLists.txt +++ b/nel/CMakeLists.txt @@ -1,3 +1,11 @@ +IF (COMMAND cmake_policy) + IF (POLICY CMP0048) + cmake_policy(SET CMP0048 NEW) + ENDIF () +ENDIF () + +project(NeL VERSION ${RyzomCore_VERSION} LANGUAGES CXX C) + IF(WITH_STATIC_DRIVERS) ADD_DEFINITIONS(-DNL_STATIC) ENDIF() diff --git a/snowballs2/CMakeLists.txt b/snowballs2/CMakeLists.txt index 368754236a..543dc5062c 100644 --- a/snowballs2/CMakeLists.txt +++ b/snowballs2/CMakeLists.txt @@ -1,3 +1,7 @@ +cmake_minimum_required(VERSION 3.27) + +project(Snowballs VERSION 2.0.0 LANGUAGES CXX) + IF(WIN32) SET(SNOWBALLS_CONFIG_FILE "." CACHE FILEPATH "Snowballs config file location") ELSE()