aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cppad
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cppad
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/cppad')
-rw-r--r--vcpkg/ports/cppad/portfile.cmake25
-rw-r--r--vcpkg/ports/cppad/vcpkg.json15
2 files changed, 40 insertions, 0 deletions
diff --git a/vcpkg/ports/cppad/portfile.cmake b/vcpkg/ports/cppad/portfile.cmake
new file mode 100644
index 0000000..60be8f2
--- /dev/null
+++ b/vcpkg/ports/cppad/portfile.cmake
@@ -0,0 +1,25 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO coin-or/CppAD
+ REF "${VERSION}"
+ SHA512 a2e9b90246a78319d2a50347e03ee7a4e807e059200d834290981b5fc4ff99e1964c420f606a36b6cacb21d5b254f34edbafa660242b260a828e2259686f40cd
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ DISABLE_PARALLEL_CONFIGURE
+ OPTIONS
+ -Dcppad_prefix=${CURRENT_PACKAGES_DIR}
+ OPTIONS_RELEASE
+ -Dcmake_install_libdirs=lib
+ OPTIONS_DEBUG
+ -Dcmake_install_libdirs=debug/lib
+)
+
+vcpkg_cmake_install()
+vcpkg_fixup_pkgconfig()
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/pkgconfig")
+
+# Add the copyright
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
diff --git a/vcpkg/ports/cppad/vcpkg.json b/vcpkg/ports/cppad/vcpkg.json
new file mode 100644
index 0000000..6e8c99c
--- /dev/null
+++ b/vcpkg/ports/cppad/vcpkg.json
@@ -0,0 +1,15 @@
+{
+ "$comment": "See related issue for compilation failure on UWP and ARM: https://github.com/microsoft/vcpkg/pull/12560#issuecomment-668412073",
+ "name": "cppad",
+ "version": "20240000.7",
+ "description": "CppAD: A Package for Differentiation of C++ Algorithms",
+ "homepage": "https://github.com/coin-or/CppAD",
+ "license": "EPL-2.0",
+ "supports": "!(arm | uwp)",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}