From f88695152c14e20a85bdacb2bdea868d6501159f Mon Sep 17 00:00:00 2001 From: Mathieu Pellerin Date: Thu, 10 Oct 2024 11:52:57 +0700 Subject: [PATCH] Save time by not building crssync on Android and iOS --- vcpkg/ports/qgis/portfile.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vcpkg/ports/qgis/portfile.cmake b/vcpkg/ports/qgis/portfile.cmake index 6199820a67..cd68533424 100644 --- a/vcpkg/ports/qgis/portfile.cmake +++ b/vcpkg/ports/qgis/portfile.cmake @@ -169,6 +169,11 @@ if(VCPKG_TARGET_IS_IOS) list(APPEND QGIS_OPTIONS -DWITH_QTSERIALPORT=FALSE) endif() +# Build crssync only runs when building natively. +if(NOT HOST_TRIPLET STREQUAL TARGET_TRIPLET) + list(APPEND QGIS_OPTIONS -DNATIVE_CRSSYNC_BIN=true) +endif() + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} #PREFER_NINJA