Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnkit <ankitm>2020-09-07 21:54:59 +0300
committerAnkit Meel <ankitjmeel@gmail.com>2020-09-07 21:56:27 +0300
commit5eb5978043c8e7036e15572ea43b083965140e77 (patch)
tree648f6449502bfe231f0c6c8986164dac91c1009a /build_files
parent6aaa6c96a1c5b1cfb093433f96999086534ef18b (diff)
Generate Xcode scheme files during configuration.
Every time CMake is re-run, Xcode shows a popup asking if user wants to manage schemes automatically or manually. Building Blender wiki page recommends managing schemes automatically. This change sets the default behavior to "automatically" and generates the .xcscheme files while CMake is running, instead of hogging Xcode later on. With tests enabled, the number of schemes is 203. Reviewed By: brecht Differential Revision: https://developer.blender.org/D8820
Diffstat (limited to 'build_files')
-rw-r--r--build_files/cmake/platform/platform_apple_xcode.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/build_files/cmake/platform/platform_apple_xcode.cmake b/build_files/cmake/platform/platform_apple_xcode.cmake
index 3a43ca317dd..7e6bd14ecc3 100644
--- a/build_files/cmake/platform/platform_apple_xcode.cmake
+++ b/build_files/cmake/platform/platform_apple_xcode.cmake
@@ -154,3 +154,11 @@ if(NOT ${CMAKE_GENERATOR} MATCHES "Xcode")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}")
add_definitions("-DMACOSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET}")
endif()
+
+if(${CMAKE_GENERATOR} MATCHES "Xcode")
+ # Generate schemes in Blender.xcodeproj/xcshareddata/xcschemes/ early, at
+ # configuration time, not when Xcode is opened.
+ # This gets rid of "Manage schemes automatically" confirmation dialog that
+ # appears whenever CMake is run.
+ set(CMAKE_XCODE_GENERATE_SCHEME ON)
+endif()