mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 16:17:50 +08:00
28 lines
866 B
CMake
28 lines
866 B
CMake
include(vcpkg_common_functions)
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
|
message(WARNING "Dynamic not supported. Building static")
|
|
set(VCPKG_LIBRARY_LINKAGE "static")
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO KhronosGroup/glslang
|
|
REF 57f6a016f05b83f5f67d46e61771e8f69e0374db
|
|
SHA512 f855912cce4c13a42cebc973b3cb85f75d2f960c68a99dff8f768521d81130a031bc06624dde7d2a4c276c9d4e129c5655e74ab410ec20305e3204f3e1b319ce
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/tools")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
# Handle copyright
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/glslang)
|