2017-09-04 06:22:43 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO stevengj/nlopt
|
2022-04-19 07:32:24 +08:00
|
|
|
REF v2.7.1
|
|
|
|
SHA512 e23cb522fc696010574c14b72be85acc0f8ccf0bf208bf2b8789c57d6c5a6e6d419ee10330581518b1c1567018ae909b626ce7761d4fbd5bf112916871e420e2
|
2017-09-04 06:22:43 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-04-19 07:32:24 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-06-19 04:34:43 +08:00
|
|
|
OPTIONS
|
|
|
|
-DNLOPT_FORTRAN=OFF
|
|
|
|
-DNLOPT_PYTHON=OFF
|
|
|
|
-DNLOPT_OCTAVE=OFF
|
|
|
|
-DNLOPT_MATLAB=OFF
|
|
|
|
-DNLOPT_GUILE=OFF
|
|
|
|
-DNLOPT_SWIG=OFF
|
2017-09-04 06:22:43 +08:00
|
|
|
)
|
|
|
|
|
2022-04-19 07:32:24 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-09-04 06:22:43 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-04-19 07:32:24 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/nlopt)
|
2017-09-04 06:22:43 +08:00
|
|
|
|
2022-04-19 07:32:24 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2017-09-04 06:22:43 +08:00
|
|
|
|
2022-04-19 07:32:24 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|