diff options
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | cmake/macos_bundle.plist.in | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bab90d6be9..fc51718306 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,10 @@ else() set(LLVM_CLANG false) endif() +if(APPLE AND CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS 10.14) + add_compile_options(-fno-aligned-allocation) +endif() + # CMake implicitly sets the variable MSVC to true for Microsoft # Visual C++ or another compiler simulating Visual C++. # https://cmake.org/cmake/help/latest/variable/MSVC.html @@ -1074,7 +1078,6 @@ if (APPLE) set(MACOS_BUNDLE_VERSION "${CMAKE_PROJECT_VERSION}") set(MACOS_BUNDLE_SHORTVERSION "${CMAKE_PROJECT_VERSION}") - set(MACOS_BUNDLE_MINOSVERSION "10.12.0") set_target_properties(mixxx PROPERTIES MACOSX_BUNDLE true diff --git a/cmake/macos_bundle.plist.in b/cmake/macos_bundle.plist.in index 1f8af6bb1e..472b7554af 100644 --- a/cmake/macos_bundle.plist.in +++ b/cmake/macos_bundle.plist.in @@ -36,6 +36,6 @@ <string>public.app-category.music</string> <key>LSMinimumSystemVersion</key> - <string>@MACOS_BUNDLE_MINVERSION@</string> + <string>@CMAKE_OSX_DEPLOYMENT_TARGET@</string> </dict> </plist> |