Add option to not generate frameworks under macOS. Ref #1236

This commit is contained in:
Thomas Thomassen 2021-10-20 20:35:19 +02:00
parent 3dffb9c32c
commit beb095d7e3
2 changed files with 2 additions and 1 deletions

View File

@ -318,6 +318,7 @@ option(NO_GLTESTS "Disable GL tests")
option(NO_GLEW "Disable use of GLEW" ON)
option(NO_GLFW "Disable components depending on GLFW" OFF)
option(NO_GLFW_X11 "Disable GLFW components depending on X11" OFF)
option(NO_MACOS_FRAMEWORK "Disable generation of framework on macOS" OFF)
option(OPENSUBDIV_GREGORY_EVAL_TRUE_DERIVATIVES "Enable true derivative evaluation for Gregory basis patches" OFF)

View File

@ -239,7 +239,7 @@ if (NOT NO_LIB)
endif()
# Build frameworks ----------------------------------
if(APPLE)
if(APPLE AND NOT NO_MACOS_FRAMEWORK)
get_directory_property(OSD_HEADER_FILES DIRECTORY ${CMAKE_SOURCE_DIR}/opensubdiv/osd DEFINITION PUBLIC_HEADER_FILES)
get_directory_property(FAR_HEADER_FILES DIRECTORY ${CMAKE_SOURCE_DIR}/opensubdiv/far DEFINITION PUBLIC_HEADER_FILES)
get_directory_property(SDC_HEADER_FILES DIRECTORY ${CMAKE_SOURCE_DIR}/opensubdiv/sdc DEFINITION PUBLIC_HEADER_FILES)