Skip to content

Commit 95be594

Browse files
committed
fix: set CMAKE_MACOSX_BUNDLE=YES only if it has not been defined
1 parent c55677a commit 95be594

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ios.toolchain.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,9 @@ if(NOT ENABLE_STRICT_TRY_COMPILE_INT)
677677
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
678678
endif()
679679
# All iOS/Darwin specific settings - some may be redundant.
680-
set(CMAKE_MACOSX_BUNDLE YES)
680+
if (NOT DEFINED CMAKE_MACOSX_BUNDLE)
681+
set(CMAKE_MACOSX_BUNDLE YES)
682+
endif()
681683
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED "NO")
682684
set(CMAKE_SHARED_LIBRARY_PREFIX "lib")
683685
set(CMAKE_SHARED_LIBRARY_SUFFIX ".dylib")

0 commit comments

Comments
 (0)