diff options
Diffstat (limited to 'build_files/cmake')
-rw-r--r-- | build_files/cmake/platform/platform_apple_xcode.cmake | 8 |
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() |