add GEODE_GD_VERSION_STRING macro because i do not trust floating point numbers
Some checks failed
Build Binaries / Build Windows (push) Has been cancelled
Build Binaries / Build macOS (push) Has been cancelled
Build Binaries / Build Android (64-bit) (push) Has been cancelled
Build Binaries / Build Android (32-bit) (push) Has been cancelled
Build Binaries / Publish (push) Has been cancelled

This commit is contained in:
dankmeme01 2024-09-27 21:24:46 +02:00
parent 0c42076903
commit 5a7974f07a

View file

@ -193,7 +193,12 @@ if (NOT DEFINED GEODE_GD_VERSION)
set(GEODE_COMP_GD_VERSION 22060) set(GEODE_COMP_GD_VERSION 22060)
endif() endif()
target_compile_definitions(${PROJECT_NAME} INTERFACE GEODE_GD_VERSION=${GEODE_GD_VERSION} GEODE_COMP_GD_VERSION=${GEODE_COMP_GD_VERSION}) target_compile_definitions(
${PROJECT_NAME} INTERFACE
GEODE_GD_VERSION=${GEODE_GD_VERSION}
GEODE_COMP_GD_VERSION=${GEODE_COMP_GD_VERSION}
GEODE_GD_VERSION_STRING="${GEODE_GD_VERSION}"
)
if (WIN32) if (WIN32)
# This allows you to compile in debug mode # This allows you to compile in debug mode