diff --git a/ports/ceres/portfile.cmake b/ports/ceres/portfile.cmake index 8cb18127366958..4249124a18ee2e 100644 --- a/ports/ceres/portfile.cmake +++ b/ports/ceres/portfile.cmake @@ -43,10 +43,17 @@ foreach (FEATURE ${FEATURE_OPTIONS}) message(STATUS "${FEATURE}") endforeach() +set(TARGET_OPTIONS ) +if(VCPKG_TARGET_IS_IOS) + # Note: CMake uses "OSX" not just for macOS, but also iOS, watchOS and tvOS. + list(APPEND TARGET_OPTIONS "-DIOS_DEPLOYMENT_TARGET=${VCPKG_OSX_DEPLOYMENT_TARGET}") +endif() + vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" OPTIONS ${FEATURE_OPTIONS} + ${TARGET_OPTIONS} -DEXPORT_BUILD_DIR=ON -DBUILD_BENCHMARKS=OFF -DBUILD_EXAMPLES=OFF diff --git a/ports/ceres/vcpkg.json b/ports/ceres/vcpkg.json index a37a30760f380d..a060f89b41e46f 100644 --- a/ports/ceres/vcpkg.json +++ b/ports/ceres/vcpkg.json @@ -1,7 +1,7 @@ { "name": "ceres", "version": "2.1.0", - "port-version": 2, + "port-version": 3, "description": "non-linear optimization package", "homepage": "https://github.com/ceres-solver/ceres-solver", "license": "Apache-2.0", diff --git a/versions/baseline.json b/versions/baseline.json index e7c0d8fa16087c..88d16fc1ad2010 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1378,7 +1378,7 @@ }, "ceres": { "baseline": "2.1.0", - "port-version": 2 + "port-version": 3 }, "cfitsio": { "baseline": "3.49", diff --git a/versions/c-/ceres.json b/versions/c-/ceres.json index ded354d8532ac1..2d45c7b6a75399 100644 --- a/versions/c-/ceres.json +++ b/versions/c-/ceres.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "41580e5d78c0894588ee748ef09366ff9309aa0c", + "version": "2.1.0", + "port-version": 3 + }, { "git-tree": "4baf16216d2d50574964ba5795a501bb89193042", "version": "2.1.0",