mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 21:37:42 -07:00
27ac8dbc14
* Integrate support for building with dependencies from vcpkg Configure the build using -DUSE_VCPKG=ON to use vcpkg. By default recommended triplets targeting the OS versions official builds support are used. You can opt out of this with -DUSE_RECOMMENDED_TRIPLETS=OFF. * Add the vcpkg manifest * Fetch vcpkg with FetchContent if we don't have it * macOS cross compiling fixes - can't use the x86_64 one as host triplet on arm64 because building Qt fails for whatever reason. Because of course it does :D - vcpkg doesn't always like periods in triplet names so removed those * x86_64 macOS should also use its recommended target when building arm64 builds
13 lines
372 B
CMake
13 lines
372 B
CMake
set(VCPKG_TARGET_ARCHITECTURE arm64)
|
|
set(VCPKG_CRT_LINKAGE dynamic)
|
|
set(VCPKG_LIBRARY_LINKAGE static)
|
|
|
|
set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
|
|
set(VCPKG_CMAKE_SYSTEM_VERSION 11.0)
|
|
set(VCPKG_OSX_ARCHITECTURES arm64)
|
|
set(VCPKG_BUILD_TYPE release)
|
|
set(VCPKG_OSX_DEPLOYMENT_TARGET 11.0)
|
|
|
|
set(VCPKG_C_FLAGS -mmacosx-version-min=11.0)
|
|
set(VCPKG_CXX_FLAGS -mmacosx-version-min=11.0)
|