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
This commit is contained in:
Jake Turner
2021-11-23 05:35:20 +00:00
committed by Baldur Karlsson
parent 8d9a618bd6
commit e3e50fd9e4
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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)
+1 -1
View File
@@ -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()