vcpkg/ports/sparsepp/portfile.cmake

29 lines
842 B
CMake
Raw Normal View History

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2018-12-13 04:46:59 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO greg7mdp/sparsepp
REF 1.22
SHA512 b660cd7de48fcab50d4a0df4e4813226b0b0a8a3791aba4e4cc6a456af7bba0be6694bc44781a7d00b5582b32b1d85b9afa83095b7e5c0a26d1b0344ddc94b0f
HEAD_REF master
2018-12-13 04:46:59 +08:00
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
2018-12-13 04:46:59 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2018-12-13 04:46:59 +08:00
)
# Note: we could add: OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
# but it's an header only package, so there's no INSTALL target. So
# we remove the duplicate headers.
vcpkg_cmake_install()
2018-12-13 04:46:59 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
2018-12-13 04:46:59 +08:00
vcpkg_copy_pdbs()
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)