Skip to content

Commit

Permalink
Merge pull request #166 from georgemp/conditional_macos_bundle
Browse files Browse the repository at this point in the history
fix: set CMAKE_MACOSX_BUNDLE=YES only if it has not been defined
  • Loading branch information
leetal authored Nov 13, 2022
2 parents 5a2cafa + 95be594 commit 04d91f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ios.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,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")
Expand Down

0 comments on commit 04d91f6

Please sign in to comment.