diff --git a/cmake/GeodeFile.cmake b/cmake/GeodeFile.cmake index 9c496216..eddcc445 100644 --- a/cmake/GeodeFile.cmake +++ b/cmake/GeodeFile.cmake @@ -90,7 +90,13 @@ function(setup_geode_mod proname) endif() # 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( COMMAND ${GEODE_CLI} package setup ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} --externals ${GEODE_MODS_BEING_BUILT} @@ -129,7 +135,7 @@ function(setup_geode_mod proname) DEPENDS ${proname} ${CMAKE_CURRENT_SOURCE_DIR}/mod.json COMMAND ${GEODE_CLI} package new ${CMAKE_CURRENT_SOURCE_DIR} --binary $ $ - --output $/${proname}.geode + --output ${CMAKE_CURRENT_BINARY_DIR}/${MOD_ID}.geode ${INSTALL_ARG} VERBATIM USES_TERMINAL ) @@ -138,7 +144,7 @@ function(setup_geode_mod proname) DEPENDS ${proname} ${CMAKE_CURRENT_SOURCE_DIR}/mod.json COMMAND ${GEODE_CLI} package new ${CMAKE_CURRENT_SOURCE_DIR} --binary $ - --output $/${proname}.geode + --output ${CMAKE_CURRENT_BINARY_DIR}/${MOD_ID}.geode ${INSTALL_ARG} VERBATIM USES_TERMINAL )