vcpkg/ports/libcopp/portfile.cmake

36 lines
1.2 KiB
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
2021-06-22 05:18:40 +08:00
REPO owent/libcopp
2023-02-11 02:48:00 +08:00
REF "v${VERSION}"
2023-05-06 02:13:22 +08:00
SHA512 aa594e1cab9e8489feb864539834a66f700be51000e551840456cbb27971894b3481b300be88a8273f7efc189e3003ecc680eabb3ae8131a90daa2ba90447973
HEAD_REF v2
PATCHES fix-x86-windows.patch
)
2021-06-22 05:18:40 +08:00
# atframework/cmake-toolset needed as a submodule for configure cmake
vcpkg_from_github(
OUT_SOURCE_PATH ATFRAMEWORK_CMAKE_TOOLSET
REPO atframework/cmake-toolset
2023-04-10 12:46:11 +08:00
REF v1.10.1
SHA512 7ea18e41fabd35af5fd72fb954a1c60480ba85a9ff820104785d263e719751ba699eeca801ce5155041d8bf51fb2c37ea53f6ed404e4a4e7e810f1eb9bacead4
2021-06-22 05:18:40 +08:00
HEAD_REF main
)
2021-11-30 09:17:26 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
2021-06-22 05:18:40 +08:00
OPTIONS "-DATFRAMEWORK_CMAKE_TOOLSET_DIR=${ATFRAMEWORK_CMAKE_TOOLSET}"
)
2021-11-30 09:17:26 +08:00
vcpkg_cmake_install()
2023-02-11 02:48:00 +08:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/BOOST_LICENSE_1_0.txt" "${SOURCE_PATH}/LICENSE")
vcpkg_copy_pdbs()
2021-11-30 09:17:26 +08:00
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libcopp)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/libcopp/libcopp-config.cmake" "set(\${CMAKE_FIND_PACKAGE_NAME}_SOURCE_DIR \"${SOURCE_PATH}\")" "")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")