mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-04 09:11:31 -04:00
pass CLI_PATH through PATHS instead of global variable
This commit is contained in:
parent
7ca9959b1b
commit
f2d683a931
1 changed files with 1 additions and 6 deletions
|
@ -1,13 +1,8 @@
|
|||
set(GEODE_CLI_MINIMUM_VERSION 1.0.5)
|
||||
|
||||
# for passing CLI through CMake arguments
|
||||
if (DEFINED CLI_PATH)
|
||||
list(APPEND CMAKE_PROGRAM_PATH ${CLI_PATH})
|
||||
endif()
|
||||
|
||||
# Find Geode CLI
|
||||
if (NOT DEFINED GEODE_CLI)
|
||||
find_program(GEODE_CLI NAMES geode.exe geode-cli.exe geode geode-cli)
|
||||
find_program(GEODE_CLI NAMES geode.exe geode-cli.exe geode geode-cli PATHS ${CLI_PATH})
|
||||
endif()
|
||||
|
||||
# Check if CLI was found
|
||||
|
|
Loading…
Add table
Reference in a new issue