From 659db14033cdc27b428abb1d0af06379990c1a2e Mon Sep 17 00:00:00 2001 From: camila314 Date: Mon, 3 Oct 2022 00:06:27 -0500 Subject: [PATCH] Small cmake fix --- CMakeLists.txt | 2 +- cmake/Platform.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b3dfeeaa..0b0129a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,7 +62,7 @@ if (NOT EXISTS ${GEODE_BIN_PATH}) make_directory(${GEODE_BIN_PATH}) endif() -if (GEODE_LINK_NIGHTLY) +if (${GEODE_LINK_NIGHTLY}) set(GEODE_PLATFORM_BIN_PATH ${GEODE_BIN_PATH}/nightly/${GEODE_PLATFORM_BINARY}) else() set(GEODE_PLATFORM_BIN_PATH ${GEODE_BIN_PATH}/${PROJECT_VERSION}/${GEODE_PLATFORM_BINARY}) diff --git a/cmake/Platform.cmake b/cmake/Platform.cmake index 20bd9af6..b2c3a78a 100644 --- a/cmake/Platform.cmake +++ b/cmake/Platform.cmake @@ -39,7 +39,7 @@ elseif (GEODE_TARGET_PLATFORM STREQUAL "MacOS") ${GEODE_LOADER_PATH}/include/Geode/cocos/cocos2dx/platform/third_party/mac/OGLES ) - target_link_libraries(${PROJECT_NAME} INTERFACE "-framework Cocoa") + target_link_libraries(${PROJECT_NAME} INTERFACE curl "-framework Cocoa") target_compile_options(${PROJECT_NAME} INTERFACE -fms-extensions -Wno-deprecated -Wno-ignored-attributes -Os -flto -fvisibility=internal) target_compile_definitions(${PROJECT_NAME} INTERFACE -DCC_TARGET_OS_MAC)