diff options
| author | nicole mazzuca <mazzucan@outlook.com> | 2021-06-03 14:57:42 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-03 12:57:42 -0700 |
| commit | 8129af76d6cf50ce4ba9a69432bc2f3e8ebb305a (patch) | |
| tree | f5de294e752c1c5ebca18ffb4c5aa514ca18cd73 /ports | |
| parent | 9535ae5f7dad7a880369bb6725a1e755725bc147 (diff) | |
| download | vcpkg-8129af76d6cf50ce4ba9a69432bc2f3e8ebb305a.tar.gz vcpkg-8129af76d6cf50ce4ba9a69432bc2f3e8ebb305a.zip | |
[sundials] fix cmake targets to link bin/*.dll (#18178)
* [sundials] fix cmake targets to link bin/*.dll
* version
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/sundials/install-dlls-in-bin.patch | 11 | ||||
| -rw-r--r-- | ports/sundials/portfile.cmake | 27 | ||||
| -rw-r--r-- | ports/sundials/vcpkg.json | 1 |
3 files changed, 14 insertions, 25 deletions
diff --git a/ports/sundials/install-dlls-in-bin.patch b/ports/sundials/install-dlls-in-bin.patch new file mode 100644 index 000000000..2a4ab5a49 --- /dev/null +++ b/ports/sundials/install-dlls-in-bin.patch @@ -0,0 +1,11 @@ +--- a/cmake/macros/SundialsAddLibrary.cmake
++++ b/cmake/macros/SundialsAddLibrary.cmake
+@@ -323,7 +323,7 @@
+ set_target_properties(${_actual_target_name} PROPERTIES ${_properties})
+ endif()
+
+ # install phase
+- install(TARGETS ${_actual_target_name} DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT sundials-targets)
++ install(TARGETS ${_actual_target_name} EXPORT sundials-targets)
+
+ endif()
diff --git a/ports/sundials/portfile.cmake b/ports/sundials/portfile.cmake index 3af735a68..ae72b89a2 100644 --- a/ports/sundials/portfile.cmake +++ b/ports/sundials/portfile.cmake @@ -4,6 +4,8 @@ vcpkg_from_github( REF 73c280cd55ca2b42019c8a9aa54af10e41e27b9d # v5.7.0 SHA512 c70c53e5f5efe47255d23f36e71ffd75d61905a13a634a26bfbbd43c3c8764b7805db9a8cbe48c6cf69b2a1028701cb7118074bbbc01de71faf4f30bf0be22f9 HEAD_REF master + PATCHES + install-dlls-in-bin.patch ) string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SUN_BUILD_STATIC) @@ -22,34 +24,9 @@ vcpkg_install_cmake(DISABLE_PARALLEL) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) -file(GLOB REMOVE_DLLS - "${CURRENT_PACKAGES_DIR}/debug/lib/*.dll" - "${CURRENT_PACKAGES_DIR}/lib/*.dll" -) - -file(GLOB DEBUG_DLLS - "${CURRENT_PACKAGES_DIR}/debug/lib/*.dll" -) - -file(GLOB DLLS - "${CURRENT_PACKAGES_DIR}/lib/*.dll" -) - -if(DLLS) - file(INSTALL ${DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/bin) -endif() - -if(DEBUG_DLLS) - file(INSTALL ${DEBUG_DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin) -endif() - file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(REMOVE "${CURRENT_PACKAGES_DIR}/LICENSE") file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/LICENSE") -if(REMOVE_DLLS) - file(REMOVE ${REMOVE_DLLS}) -endif() - vcpkg_copy_pdbs() vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT}) diff --git a/ports/sundials/vcpkg.json b/ports/sundials/vcpkg.json index 5985a6115..9245e80d2 100644 --- a/ports/sundials/vcpkg.json +++ b/ports/sundials/vcpkg.json @@ -1,6 +1,7 @@ { "name": "sundials", "version-semver": "5.7.0", + "port-version": 1, "description": "SUNDIALS (SUite of Nonlinear and DIfferential/ALgebraic equation Solvers)", "homepage": "https://computation.llnl.gov/projects/sundials" } |
