mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
Merge branch 'main' of https://github.com/geode-sdk/geode into main
This commit is contained in:
commit
3fe5e6197e
2 changed files with 11 additions and 13 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
|
||||
|
@ -53,6 +48,9 @@ function(setup_geode_mod proname)
|
|||
set(multiValueArgs EXTERNALS)
|
||||
cmake_parse_arguments(SETUP_GEODE_MOD "${options}" "" "${multiValueArgs}" ${ARGN})
|
||||
|
||||
# Link Geode to the mod
|
||||
target_link_libraries(${proname} geode-sdk)
|
||||
|
||||
if (GEODE_DISABLE_CLI_CALLS)
|
||||
message("Skipping setting up geode mod ${proname}")
|
||||
return()
|
||||
|
@ -109,7 +107,7 @@ function(setup_geode_mod proname)
|
|||
endif()
|
||||
|
||||
# Check if --install should be passed
|
||||
if (SETUP_GEODE_MOD_DONT_INSTALL)
|
||||
if (SETUP_GEODE_MOD_DONT_INSTALL OR GEODE_DONT_INSTALL_MODS)
|
||||
message(STATUS "Skipping installing ${proname}")
|
||||
set(INSTALL_ARG "")
|
||||
else()
|
||||
|
@ -124,10 +122,6 @@ function(setup_geode_mod proname)
|
|||
set(HAS_HEADERS Off)
|
||||
endif()
|
||||
|
||||
# Add package target + make output name the mod id
|
||||
set_target_properties(${proname} PROPERTIES PREFIX "")
|
||||
set_target_properties(${proname} PROPERTIES OUTPUT_NAME ${MOD_ID})
|
||||
|
||||
# todo: figure out how to either not make cmake shit itself and print out --binary path/to/dll "" or
|
||||
# make cli not shit itself when it sees that
|
||||
if (HAS_HEADERS)
|
||||
|
@ -199,8 +193,9 @@ function(setup_geode_mod proname)
|
|||
|
||||
endif()
|
||||
|
||||
# Link Geode to the mod
|
||||
target_link_libraries(${proname} geode-sdk)
|
||||
# Add package target + make output name the mod id
|
||||
set_target_properties(${proname} PROPERTIES PREFIX "")
|
||||
set_target_properties(${proname} PROPERTIES OUTPUT_NAME ${MOD_ID})
|
||||
|
||||
endfunction()
|
||||
|
||||
|
|
|
@ -30,6 +30,9 @@ elseif (GEODE_TARGET_PLATFORM STREQUAL "MacOS")
|
|||
APPLE_SILICON_PROCESSOR x86_64
|
||||
)
|
||||
|
||||
# this should be set globally
|
||||
set(CMAKE_OSX_ARCHITECTURES "x86_64")
|
||||
|
||||
# only exists as a global property
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.14)
|
||||
|
||||
|
|
Loading…
Reference in a new issue