Skip to content

Commit

Permalink
Remove the rcXX suffix from the cmake version as it doesn't like the …
Browse files Browse the repository at this point in the history
…Python versioning format
  • Loading branch information
StephenOman committed Jul 5, 2024
1 parent 50c3d47 commit 0f5b27d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.15)
file(STRINGS "version.txt" NLE_VERSION)
project(nle VERSION ${NLE_VERSION})
# Remove any rcXX suffix from the version number as CMake doesn't like it
string(REGEX REPLACE "rc[0-9+]$" "" CMAKE_NLE_VERSION ${NLE_VERSION})
project(nle VERSION ${CMAKE_NLE_VERSION})

if(CMAKE_BUILD_TYPE MATCHES Debug)
message("Debug build.")
Expand Down Expand Up @@ -30,7 +32,7 @@ else()
message("Some other build type.")
endif()

message(STATUS "Building nle backend version: ${NLE_VERSION}")
message(STATUS "Building nle backend version: ${CMAKE_NLE_VERSION}")

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

Expand Down

0 comments on commit 0f5b27d

Please sign in to comment.