From 95be594705857580120bcb5118a24e0ec376d3de Mon Sep 17 00:00:00 2001 From: George Philip Malayil Date: Sun, 13 Nov 2022 17:29:50 +0530 Subject: [PATCH] fix: set CMAKE_MACOSX_BUNDLE=YES only if it has not been defined --- ios.toolchain.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ios.toolchain.cmake b/ios.toolchain.cmake index 5c8add8..441f77c 100644 --- a/ios.toolchain.cmake +++ b/ios.toolchain.cmake @@ -677,7 +677,9 @@ if(NOT ENABLE_STRICT_TRY_COMPILE_INT) set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) endif() # All iOS/Darwin specific settings - some may be redundant. -set(CMAKE_MACOSX_BUNDLE YES) +if (NOT DEFINED CMAKE_MACOSX_BUNDLE) + set(CMAKE_MACOSX_BUNDLE YES) +endif() set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED "NO") set(CMAKE_SHARED_LIBRARY_PREFIX "lib") set(CMAKE_SHARED_LIBRARY_SUFFIX ".dylib")