mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Allow command line to override Apple cmake options
CMAKE_OSX_ARCHITECTURES ENABLE_PYRENDERDOC CMAKE_OSX_DEPLOYMENT_TARGET Remove CMAKE_OSX_ARCHITECTURES default setting to build for multiple architectures. Enable ENABLE_PYRENDERDOC to On by default for Apple.
This commit is contained in:
committed by
Baldur Karlsson
parent
2f30ad3e27
commit
d361ebf7e1
+1
-6
@@ -4,8 +4,7 @@ if(APPLE)
|
||||
# Building for Apple requires at least CMake 3.20.0
|
||||
cmake_minimum_required(VERSION 3.20.0)
|
||||
|
||||
SET(CMAKE_OSX_ARCHITECTURES "x86_64;arm64" CACHE STRING "Build architectures for Mac OS X" FORCE)
|
||||
SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum SDK for Mac OS X" FORCE)
|
||||
SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum SDK for Mac OS X")
|
||||
SET(CMAKE_XCODE_GENERATE_SCHEME ON)
|
||||
endif()
|
||||
|
||||
@@ -308,10 +307,6 @@ if(APPLE)
|
||||
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE "${CMAKE_BINARY_DIR}/lib")
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_BINARY_DIR}/bin")
|
||||
|
||||
# By default disable the python modules (brew python does not provide universal libraries)
|
||||
message(STATUS "Disabling renderdoc python modules for Apple build")
|
||||
set(ENABLE_PYRENDERDOC OFF CACHE BOOL "" FORCE)
|
||||
endif()
|
||||
|
||||
if(ENABLE_GL)
|
||||
|
||||
Reference in New Issue
Block a user