Skip to content

Commit 04d91f6

Browse files
authored
Merge pull request #166 from georgemp/conditional_macos_bundle
fix: set CMAKE_MACOSX_BUNDLE=YES only if it has not been defined
2 parents 5a2cafa + 95be594 commit 04d91f6

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
@@ -689,7 +689,9 @@ if(NOT ENABLE_STRICT_TRY_COMPILE_INT)
689689
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
690690
endif()
691691
# All iOS/Darwin specific settings - some may be redundant.
692-
set(CMAKE_MACOSX_BUNDLE YES)
692+
if (NOT DEFINED CMAKE_MACOSX_BUNDLE)
693+
set(CMAKE_MACOSX_BUNDLE YES)
694+
endif()
693695
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED "NO")
694696
set(CMAKE_SHARED_LIBRARY_PREFIX "lib")
695697
set(CMAKE_SHARED_LIBRARY_SUFFIX ".dylib")

0 commit comments

Comments
 (0)