[quantlib] Fix supports (#25191)

* [quantlib] Support dynamic triplets on Windows

* version

* Fix cmake error

* version

* Fix cmake

* version

* only dynamic crt

* version
This commit is contained in:
Thomas1664 2022-06-15 20:12:37 +02:00 committed by GitHub
parent ffa73a4e20
commit 4e443a30b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 5 deletions

View File

@ -22,9 +22,11 @@ vcpkg_cmake_configure(
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME QuantLib CONFIG_PATH lib/cmake/QuantLib)
vcpkg_copy_pdbs()
# Install custom usage
configure_file(${CMAKE_CURRENT_LIST_DIR}/usage ${CURRENT_PACKAGES_DIR}/share/${PORT}/usage @ONLY)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Install custom usage
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY)
# Handle copyright
configure_file("${SOURCE_PATH}/LICENSE.TXT" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
file(INSTALL "${SOURCE_PATH}/LICENSE.TXT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,9 +1,11 @@
{
"name": "quantlib",
"version": "1.26",
"port-version": 1,
"description": "The QuantLib C++ library",
"homepage": "https://www.quantlib.org/",
"supports": "!(windows & !static)",
"license": "BSD-3-Clause",
"supports": "!(windows & !staticcrt)",
"dependencies": [
"boost-accumulators",
"boost-algorithm",

View File

@ -6062,7 +6062,7 @@
},
"quantlib": {
"baseline": "1.26",
"port-version": 0
"port-version": 1
},
"quaternions": {
"baseline": "1.0.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f5eb0f25fa5fdff2d0fd4b5cc1f1bb2e98033b59",
"version": "1.26",
"port-version": 1
},
{
"git-tree": "3af9ced73240dfb4e1ec776c5f9a16ac277d1c27",
"version": "1.26",