mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-02 08:09:57 -04:00
add GEODE_MOD_ID macro that expands to own mod id
This commit is contained in:
parent
a2ae1321ec
commit
2d4165f4e4
1 changed files with 2 additions and 0 deletions
|
@ -98,6 +98,8 @@ function(setup_geode_mod proname)
|
|||
)
|
||||
endif()
|
||||
|
||||
target_compile_definitions(${proname} PRIVATE GEODE_MOD_ID="${MOD_ID}")
|
||||
|
||||
# Add this mod to the list of known externals mods
|
||||
list(APPEND GEODE_MODS_BEING_BUILT "${MOD_ID}:${MOD_VERSION}")
|
||||
# Ensure that the list of mods being built is global (persists between setup_geode_mod calls)
|
||||
|
|
Loading…
Add table
Reference in a new issue