mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-17 17:57:54 +08:00
29 lines
1.1 KiB
CMake
29 lines
1.1 KiB
CMake
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO KDE/plasma-wayland-protocols
|
||
|
REF v1.8.0
|
||
|
SHA512 5e3cfd6d2d6a6f8dfcf97ef046bd2a671945abf81dc47d452eed4e6e0fde44e98566439cb12b5099adf023cb9ff6257cc97d9fa9bd432946c7687914cb4ee88b
|
||
|
HEAD_REF master
|
||
|
)
|
||
|
|
||
|
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
|
||
|
file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n")
|
||
|
|
||
|
vcpkg_cmake_configure(
|
||
|
SOURCE_PATH "${SOURCE_PATH}"
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_install()
|
||
|
vcpkg_cmake_config_fixup(PACKAGE_NAME PlasmaWaylandProtocols CONFIG_PATH lib/cmake/PlasmaWaylandProtocols)
|
||
|
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib")
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
||
|
|
||
|
file(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*")
|
||
|
vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES})
|
||
|
|
||
|
# Allow empty include directory
|
||
|
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|