This commit is contained in:
altalk23 2023-02-26 21:09:09 +03:00
commit 7c242a56b3

View file

@ -90,7 +90,13 @@ function(setup_geode_mod proname)
endif() endif()
# Check dependencies using CLI # Check dependencies using CLI
if (${GEODE_CLI_VERSION} VERSION_GREATER_EQUAL "1.4.0") if (${GEODE_CLI_VERSION} VERSION_GREATER_EQUAL "2.0.0")
execute_process(
COMMAND ${GEODE_CLI} project check ${CMAKE_CURRENT_BINARY_DIR}
--externals ${GEODE_MODS_BEING_BUILT}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
elseif (${GEODE_CLI_VERSION} VERSION_GREATER_EQUAL "1.4.0")
execute_process( execute_process(
COMMAND ${GEODE_CLI} package setup ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${GEODE_CLI} package setup ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
--externals ${GEODE_MODS_BEING_BUILT} --externals ${GEODE_MODS_BEING_BUILT}
@ -129,7 +135,7 @@ function(setup_geode_mod proname)
DEPENDS ${proname} ${CMAKE_CURRENT_SOURCE_DIR}/mod.json DEPENDS ${proname} ${CMAKE_CURRENT_SOURCE_DIR}/mod.json
COMMAND ${GEODE_CLI} package new ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${GEODE_CLI} package new ${CMAKE_CURRENT_SOURCE_DIR}
--binary $<TARGET_FILE:${proname}> $<TARGET_LINKER_FILE:${proname}> --binary $<TARGET_FILE:${proname}> $<TARGET_LINKER_FILE:${proname}>
--output $<TARGET_FILE_DIR:${proname}>/${proname}.geode --output ${CMAKE_CURRENT_BINARY_DIR}/${MOD_ID}.geode
${INSTALL_ARG} ${INSTALL_ARG}
VERBATIM USES_TERMINAL VERBATIM USES_TERMINAL
) )
@ -138,7 +144,7 @@ function(setup_geode_mod proname)
DEPENDS ${proname} ${CMAKE_CURRENT_SOURCE_DIR}/mod.json DEPENDS ${proname} ${CMAKE_CURRENT_SOURCE_DIR}/mod.json
COMMAND ${GEODE_CLI} package new ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${GEODE_CLI} package new ${CMAKE_CURRENT_SOURCE_DIR}
--binary $<TARGET_FILE:${proname}> --binary $<TARGET_FILE:${proname}>
--output $<TARGET_FILE_DIR:${proname}>/${proname}.geode --output ${CMAKE_CURRENT_BINARY_DIR}/${MOD_ID}.geode
${INSTALL_ARG} ${INSTALL_ARG}
VERBATIM USES_TERMINAL VERBATIM USES_TERMINAL
) )