Skip to content

Commit

Permalink
set project with version in nel and snowballs subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
zerotacg committed Jul 5, 2024
1 parent 18bf2c4 commit c9dc933
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
14 changes: 9 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down Expand Up @@ -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")

Expand Down
8 changes: 8 additions & 0 deletions nel/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
4 changes: 4 additions & 0 deletions snowballs2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit c9dc933

Please sign in to comment.