aboutsummaryrefslogtreecommitdiff
path: root/ports/ceres
diff options
context:
space:
mode:
authorStefano Sinigardi <stesinigardi@hotmail.com>2020-12-11 23:16:29 +0100
committerGitHub <noreply@github.com>2020-12-11 14:16:29 -0800
commite054fe2b20469c894b88be4ac466776f9f653954 (patch)
treec38d367b5974c69f7d824b96f8dcdf594dd32041 /ports/ceres
parentc2329ab26a6e9e06da101d8541c393c102ba6c8c (diff)
downloadvcpkg-e054fe2b20469c894b88be4ac466776f9f653954.tar.gz
vcpkg-e054fe2b20469c894b88be4ac466776f9f653954.zip
[OpenCV] fix compatibility with VTK9 (#12785)
Diffstat (limited to 'ports/ceres')
-rw-r--r--ports/ceres/portfile.cmake6
-rw-r--r--ports/ceres/vcpkg.json2
2 files changed, 7 insertions, 1 deletions
diff --git a/ports/ceres/portfile.cmake b/ports/ceres/portfile.cmake
index fd8d0ec40..e58130623 100644
--- a/ports/ceres/portfile.cmake
+++ b/ports/ceres/portfile.cmake
@@ -54,6 +54,12 @@ if(VCPKG_TARGET_IS_WINDOWS)
else()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib${LIB_SUFFIX}/cmake/Ceres)
endif()
+file(READ ${CURRENT_PACKAGES_DIR}/share/ceres/CeresConfig.cmake CERES_CONFIG)
+string(REPLACE "set_target_properties(ceres PROPERTIES INTERFACE_LINK_LIBRARIES Ceres::ceres)"
+ "set_target_properties(ceres PROPERTIES INTERFACE_LINK_LIBRARIES Ceres::ceres)
+ set(CMAKE_CXX_STANDARD 14)
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)" CERES_CONFIG "${CERES_CONFIG}")
+file(WRITE ${CURRENT_PACKAGES_DIR}/share/ceres/CeresConfig.cmake "${CERES_CONFIG}")
vcpkg_copy_pdbs()
diff --git a/ports/ceres/vcpkg.json b/ports/ceres/vcpkg.json
index 7a7177833..d89a0179f 100644
--- a/ports/ceres/vcpkg.json
+++ b/ports/ceres/vcpkg.json
@@ -1,7 +1,7 @@
{
"name": "ceres",
"version-string": "2.0.0",
- "port-version": 1,
+ "port-version": 2,
"description": "non-linear optimization package",
"homepage": "https://github.com/ceres-solver/ceres-solver",
"dependencies": [