mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-25 04:11:42 -04:00
fix dont-update-index arg
This commit is contained in:
parent
485be23fc3
commit
8468530119
1 changed files with 5 additions and 3 deletions
|
@ -90,16 +90,18 @@ function(setup_geode_mod proname)
|
|||
# For CLI >=v2.4.0, there's an option to disable updating index because
|
||||
# Github Actions on Mac just returns 403 for no reason
|
||||
if (GEODE_DONT_UPDATE_INDEX AND (${GEODE_CLI_VERSION} VERSION_GREATER_EQUAL "2.4.0"))
|
||||
set(INSTALL_ARG "--dont-update-index")
|
||||
message(STATUS "yeahh")
|
||||
set(DONT_UPDATE_INDEX_ARG "--dont-update-index")
|
||||
else()
|
||||
set(INSTALL_ARG "")
|
||||
message(STATUS "nahh")
|
||||
set(DONT_UPDATE_INDEX_ARG "")
|
||||
endif()
|
||||
|
||||
# Check dependencies using CLI
|
||||
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} ${GEODE_DONT_UPDATE_INDEX}
|
||||
--externals ${GEODE_MODS_BEING_BUILT} ${DONT_UPDATE_INDEX_ARG}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
elseif (${GEODE_CLI_VERSION} VERSION_GREATER_EQUAL "1.4.0")
|
||||
|
|
Loading…
Add table
Reference in a new issue