diff --git a/buildscripts/build_toxcore.sh b/buildscripts/build_toxcore.sh index 6395895e8..25254bd7a 100755 --- a/buildscripts/build_toxcore.sh +++ b/buildscripts/build_toxcore.sh @@ -10,7 +10,7 @@ readonly SCRIPT_DIR="$(dirname "$(realpath "$0")")" source "${SCRIPT_DIR}/build_utils.sh" -parse_arch --dep "toxcore and toxext extensions" --supported "win32 win64" "$@" +parse_arch --dep "toxcore and toxext extensions" --supported "win32 win64 macos" "$@" build_toxcore() { TOXCORE_SRC="$(realpath toxcore)" @@ -26,6 +26,7 @@ build_toxcore() { -DENABLE_STATIC=OFF \ -DENABLE_SHARED=ON \ "${CMAKE_TOOLCHAIN_FILE}" \ + "-DCMAKE_OSX_DEPLOYMENT_TARGET=${MACOS_MINIMUM_SUPPORTED_VERSION}" \ . cmake --build . -- "-j${MAKE_JOBS}" @@ -45,6 +46,7 @@ build_toxext() { cmake "-DCMAKE_INSTALL_PREFIX=${DEP_PREFIX}" \ -DCMAKE_BUILD_TYPE=Release \ "${CMAKE_TOOLCHAIN_FILE}" \ + "-DCMAKE_OSX_DEPLOYMENT_TARGET=${MACOS_MINIMUM_SUPPORTED_VERSION}" \ . cmake --build . -- "-j${MAKE_JOBS}" @@ -64,6 +66,7 @@ build_toxext_messages() { cmake "-DCMAKE_INSTALL_PREFIX=${DEP_PREFIX}" \ -DCMAKE_BUILD_TYPE=Release \ "${CMAKE_TOOLCHAIN_FILE}" \ + "-DCMAKE_OSX_DEPLOYMENT_TARGET=${MACOS_MINIMUM_SUPPORTED_VERSION}" \ . cmake --build . -- "-j${MAKE_JOBS}" cmake --build . --target install