diff --git a/ports/ceres/portfile.cmake b/ports/ceres/portfile.cmake index 8cb1812736..4249124a18 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 a37a30760f..a060f89b41 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 5bcd6ddf6f..b2a5c34562 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1382,7 +1382,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 ded354d853..2d45c7b6a7 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",