Skip to content

Commit 353d099

Browse files
committed
Default framework build to if shared libs is on or not
Signed-off-by: Dhruv Govil <dgovil2@apple.com>
1 parent 81d2f35 commit 353d099

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "iOS"
7676
OR CMAKE_SYSTEM_NAME MATCHES "visionOS"
7777
OR CMAKE_SYSTEM_NAME MATCHES "watchOS")
7878
set(MATERIALX_BUILD_APPLE_EMBEDDED ON)
79-
set(__build_apple_framework ON)
79+
set(__build_apple_framework ${MATERIALX_BUILD_SHARED_LIBS})
8080
# TARGET_OS_IPHONE refers to all IPHONE derived platforms
8181
# https://chaosinmotion.com/2021/08/02/things-to-remember-compiler-conditionals-for-macos-ios-etc/
8282
# This should be auto-defined, but leaving it in here because it was historically defined

0 commit comments

Comments
 (0)