From e3e50fd9e42170fefafc1f0690f511ff5228c52a Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Tue, 23 Nov 2021 05:35:20 +0000 Subject: [PATCH] By default disable ENABLE_PYRENDERDOC for Apple Rather than a platform exception when building python modules cmake variable UNIX is true when building for Apple platform --- CMakeLists.txt | 4 ++++ qrenderdoc/CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f2b4e496..127cee3fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -298,6 +298,10 @@ 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) diff --git a/qrenderdoc/CMakeLists.txt b/qrenderdoc/CMakeLists.txt index 5f79d4c4d..486832594 100644 --- a/qrenderdoc/CMakeLists.txt +++ b/qrenderdoc/CMakeLists.txt @@ -357,6 +357,6 @@ install (CODE "MESSAGE(\"NB: Your paths may vary.\")") endif() # if(ENABLE_QRENDERDOC) # Build python modules - primarily used for constructing documentation -if(ENABLE_PYRENDERDOC AND UNIX AND NOT APPLE) +if(ENABLE_PYRENDERDOC AND UNIX) add_subdirectory(Code/pyrenderdoc) endif()