mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 18:19:07 +08:00
8129af76d6
* [sundials] fix cmake targets to link bin/*.dll * version
33 lines
1.1 KiB
CMake
33 lines
1.1 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO LLNL/sundials
|
|
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)
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SUN_BUILD_SHARED)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-D_BUILD_EXAMPLES=OFF
|
|
-DBUILD_STATIC_LIBS=${SUN_BUILD_STATIC}
|
|
-DBUILD_SHARED_LIBS=${SUN_BUILD_SHARED}
|
|
)
|
|
|
|
vcpkg_install_cmake(DISABLE_PARALLEL)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
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")
|
|
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|