From b5cbae4b6ff56d38be09fdcd627c1ad18c8ed95d Mon Sep 17 00:00:00 2001 From: vansangpfiev Date: Fri, 6 Sep 2024 09:58:20 +0700 Subject: [PATCH] fix: macos --- engine/CMakeLists.txt | 4 ++-- engine/commands/cortex_upd_cmd.cc | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/engine/CMakeLists.txt b/engine/CMakeLists.txt index 3efa9439e..2735501dc 100644 --- a/engine/CMakeLists.txt +++ b/engine/CMakeLists.txt @@ -59,8 +59,8 @@ if(DEBUG) add_compile_definitions(ALLOW_ALL_CORS) endif() -if(CORTEX_CPP_VERSION) - add_compile_definitions(CORTEX_CPP_VERSION="${CORTEX_CPP_VERSION}") +if(NOT DEFINED CORTEX_CPP_VERSION) + set(CORTEX_CPP_VERSION "default_version") endif() if(APPLE) diff --git a/engine/commands/cortex_upd_cmd.cc b/engine/commands/cortex_upd_cmd.cc index 76ef63716..9027203e7 100644 --- a/engine/commands/cortex_upd_cmd.cc +++ b/engine/commands/cortex_upd_cmd.cc @@ -6,11 +6,9 @@ #include "nlohmann/json.hpp" #include "services/download_service.h" #include "utils/archive_utils.h" +#include "utils/file_manager_utils.h" #include "utils/logging_utils.h" #include "utils/system_info_utils.h" -#if defined(_WIN32) || defined(__linux__) -#include "utils/file_manager_utils.h" -#endif namespace commands {