vcpkg/ports/cgl/portfile.cmake

28 lines
875 B
CMake
Raw Normal View History

2019-08-27 14:51:29 -07:00
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO coin-or/Cgl
REF 31797b2997219934db02a40d501c4b6d8efa7398 # 0.60.3
SHA512 33e01acdfd2057541492f4e83c0554ed74489995c47cef0b954529d4603090d03457fdababb331132b3fd286c985e46a3c8e3abbdb2eed36e7eaa8102acd095e
2019-08-27 14:51:29 -07:00
PATCHES fix-c1083-error.patch
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
file(COPY "${CMAKE_CURRENT_LIST_DIR}/Config.cmake.in" DESTINATION "${SOURCE_PATH}")
2019-08-27 14:51:29 -07:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2019-08-27 14:51:29 -07:00
)
vcpkg_cmake_install()
2019-08-27 14:51:29 -07:00
vcpkg_cmake_config_fixup()
2020-01-06 13:17:14 -08:00
2019-08-27 14:51:29 -07:00
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
2019-08-27 14:51:29 -07:00
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)