From 0e6750743490a71fc9ef1d0a31052755b554f14a Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Wed, 28 Dec 2022 22:20:04 +0200 Subject: [PATCH] Fix editor button visibility --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cbc87f20c..90f491f6e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -172,6 +172,14 @@ set(CMAKE_XCODE_ATTRIBUTE_MARKETING_VERSION ${APP_SHORT_VERSION}) set(CMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH NO) set(CMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH[variant=Debug] YES) +if(ENABLE_LAUNCHER) + add_definitions(-DENABLE_LAUNCHER) +endif() + +if(ENABLE_EDITOR) + add_definitions(-DENABLE_EDITOR) +endif() + if(ENABLE_SINGLE_APP_BUILD) add_definitions(-DSINGLE_PROCESS_APP=1) endif() @@ -474,11 +482,9 @@ if(NOT TARGET minizip::minizip) endif() if(ENABLE_LAUNCHER) - add_definitions(-DENABLE_LAUNCHER) add_subdirectory(launcher) endif() if(ENABLE_EDITOR) - add_definitions(-DENABLE_EDITOR) add_subdirectory(mapeditor) endif() add_subdirectory(client)