2018-08-29 04:55:06 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2018-08-29 04:55:06 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
|
|
URLS "http://www.netlib.org/misc/intel/IntelRDFPMathLib20U2.tar.gz"
|
|
|
|
FILENAME "IntelRDFPMathLib20U2.tar.gz"
|
|
|
|
SHA512 4d445855f41b066b784f0c6b4e52f854df4129fa9d43569b1e1518f002b860f69796459c78de46a8ea24fb6e7aefe7f8bc1f253e78971a5ef202dab2a7b1b75a
|
|
|
|
)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
ARCHIVE ${ARCHIVE}
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
)
|
2018-08-29 04:55:06 +08:00
|
|
|
|
|
|
|
set(LIB_SOURCE_PATH "${SOURCE_PATH}/LIBRARY")
|
|
|
|
|
2022-03-02 08:38:07 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${LIB_SOURCE_PATH}")
|
2018-08-29 04:55:06 +08:00
|
|
|
|
2022-03-02 08:38:07 +08:00
|
|
|
vcpkg_cmake_configure(
|
2018-08-29 04:55:06 +08:00
|
|
|
SOURCE_PATH "${LIB_SOURCE_PATH}"
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DDISABLE_INSTALL_HEADERS=ON
|
|
|
|
)
|
|
|
|
|
2022-03-02 08:38:07 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-08-29 04:55:06 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-03-02 08:38:07 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/eula.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|