mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-24 05:14:40 -04:00
move version to its own file so it's easy for CLI to query it
This commit is contained in:
parent
5f2d3c8328
commit
d636f7d536
2 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
cmake_minimum_required(VERSION 3.21 FATAL_ERROR)
|
||||
|
||||
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build libraries static" FORCE)
|
||||
set(GEODE_VERSION 0.4.1)
|
||||
file(READ VERSION GEODE_VERSION)
|
||||
|
||||
project(geode-sdk VERSION ${GEODE_VERSION} LANGUAGES CXX C)
|
||||
|
||||
|
@ -13,6 +13,9 @@ endif()
|
|||
|
||||
add_library(${PROJECT_NAME} INTERFACE)
|
||||
|
||||
# Rerun CMake on VERSION file change
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES CMAKE_CONFIGURE_DEPENDS VERSION)
|
||||
|
||||
target_compile_definitions(${PROJECT_NAME} INTERFACE -DPROJECT_NAME=${CMAKE_PROJECT_NAME})
|
||||
|
||||
set(GEODE_CODEGEN_PATH ${CMAKE_CURRENT_BINARY_DIR}/codegenned)
|
||||
|
|
1
VERSION
Normal file
1
VERSION
Normal file
|
@ -0,0 +1 @@
|
|||
0.4.2
|
Loading…
Add table
Add a link
Reference in a new issue