diff --git a/vcpkg/ports/qgis-qt6/portfile.cmake b/vcpkg/ports/qgis-qt6/portfile.cmake index 8e3e8aa646..92c4cf1a33 100644 --- a/vcpkg/ports/qgis-qt6/portfile.cmake +++ b/vcpkg/ports/qgis-qt6/portfile.cmake @@ -225,7 +225,7 @@ if(VCPKG_TARGET_IS_WINDOWS) endif() # crssync only runs when building natively. If we are cross-compiling, copy the srs.cb from the host installation. -if(HOST_TRIPLET STREQUAL TARGET_TRIPLET) +if(NOT HOST_TRIPLET STREQUAL TARGET_TRIPLET) file(COPY "${CURRENT_HOST_INSTALLED_DIR}/share/qgis/resources/srs.db" "${CURRENT_PACKAGES_DIR}/share/qgis/resources/srs.db") endif()