2020-08-08 02:49:36 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO coin-or/CppAD
|
2021-09-17 01:45:05 +08:00
|
|
|
REF 90c510458b61049c51f937fc6ed2e611fbb17b8b #20210000.7
|
|
|
|
SHA512 112a4663a3e13f2d852c4ce4e57f6bee2dc7584915fcbab75972568258faab0d4a5761c4eaa4c664543cb8674e8e70c0623054c07dff933f9513a47f1c7d6261
|
2020-08-08 02:49:36 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
windows-fix.patch
|
|
|
|
)
|
|
|
|
|
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
|
|
|
|
-Dcppad_debug_which:STRING=debug_none
|
|
|
|
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
|
2021-09-17 01:45:05 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|