2020-08-08 02:49:36 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO coin-or/CppAD
|
2024-02-08 04:36:37 +08:00
|
|
|
REF "${VERSION}"
|
|
|
|
SHA512 0c4f57582347f1c11fabda56ef9324b5399194d13c2bcd98038f64dde1c820326cd278a94b1b97cb7aa90760bafe0c3d13c1fddf989841313ae1d4db122789c2
|
2020-08-08 02:49:36 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-09-17 01:45:05 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-08-08 02:49:36 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
|
|
OPTIONS
|
|
|
|
-Dcppad_prefix=${CURRENT_PACKAGES_DIR}
|
|
|
|
OPTIONS_RELEASE
|
|
|
|
-Dcmake_install_libdirs=lib
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-Dcmake_install_libdirs=debug/lib
|
|
|
|
)
|
|
|
|
|
2021-09-17 01:45:05 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-08-08 02:49:36 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2021-10-27 07:03:33 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/pkgconfig")
|
2020-08-08 02:49:36 +08:00
|
|
|
|
|
|
|
# Add the copyright
|
2023-01-10 02:11:16 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|