From 5a7974f07ab1c5834b12432a6c1225f68f7e236e Mon Sep 17 00:00:00 2001 From: dankmeme01 <42031238+dankmeme01@users.noreply.github.com> Date: Fri, 27 Sep 2024 21:24:46 +0200 Subject: [PATCH] add GEODE_GD_VERSION_STRING macro because i do not trust floating point numbers --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 90179159..963be24f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -193,7 +193,12 @@ if (NOT DEFINED GEODE_GD_VERSION) set(GEODE_COMP_GD_VERSION 22060) 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) # This allows you to compile in debug mode