[glslang]Fix generated cmake files. (#8051)

This commit is contained in:
JackBoosY 2019-09-12 03:54:29 +08:00 committed by Phil Christensen
parent cb0fc1a5f9
commit 2b277b4ef6
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
Source: glslang Source: glslang
Version: 2019-03-05 Version: 2019-03-05-1
Homepage: https://github.com/KhronosGroup/glslang Homepage: https://github.com/KhronosGroup/glslang
Description: Khronos reference front-end for GLSL and ESSL, and sample SPIR-V generator Description: Khronos reference front-end for GLSL and ESSL, and sample SPIR-V generator

View File

@ -16,15 +16,20 @@ vcpkg_from_github(
vcpkg_configure_cmake( vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA PREFER_NINJA
OPTIONS -DCMAKE_DEBUG_POSTFIX=d -DSKIP_GLSLANG_INSTALL=OFF OPTIONS
-DCMAKE_DEBUG_POSTFIX=d
-DSKIP_GLSLANG_INSTALL=OFF
) )
vcpkg_install_cmake() vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/glslang)
vcpkg_copy_pdbs()
file(RENAME "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/tools") file(RENAME "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/tools")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
# Handle copyright # Handle copyright
file(COPY ${CMAKE_CURRENT_LIST_DIR}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/glslang) file(COPY ${CMAKE_CURRENT_LIST_DIR}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/glslang)