Skip to content

Commit

Permalink
strip patch version from sdk version check
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Dec 24, 2024
1 parent e558bd3 commit 100be49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/GeodeFile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ function(setup_geode_mod proname)
string(JSON MOD_HAS_API ERROR_VARIABLE MOD_DOESNT_HAVE_API GET "${MOD_JSON}" "api")
string(JSON MOD_HAS_DEPS ERROR_VARIABLE MOD_DOESNT_HAVE_DEPS GET "${MOD_JSON}" "dependencies")

if ("${TARGET_GEODE_VERSION}" STREQUAL "${GEODE_VERSION_FULL}")
string(REGEX REPLACE "([0-9]+\\.[0-9]+)\\.[0-9]+" "\\1" TARGET_GEODE_VERSION_SHORT ${TARGET_GEODE_VERSION})
string(REGEX REPLACE "([0-9]+\\.[0-9]+)\\.[0-9]+" "\\1" GEODE_VERSION_SHORT ${GEODE_VERSION_FULL})

if ("${TARGET_GEODE_VERSION_SHORT}" STREQUAL "${GEODE_VERSION_SHORT}")
message(STATUS "Mod ${MOD_ID} is compiling for Geode version ${GEODE_VERSION_FULL}")
else()
message(FATAL_ERROR
Expand Down

0 comments on commit 100be49

Please sign in to comment.