mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
0a64f3a1f6
* [spirv-headers] Update to version 1.5.1 * [spirv-tools] Update to version 2020.1 * [spirv-tools] Work around an import config typo * [spirv-tools] Fix nitpicks * [spirv-headers] Modernize port * [spirv-tools] Fix directory name capitalization mismatch
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 6ed56a8..66d1e66 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -210,15 +210,9 @@ else()
|
|
endif()
|
|
|
|
if(ENABLE_SPIRV_TOOLS_INSTALL)
|
|
- if(WIN32)
|
|
- macro(spvtools_config_package_dir TARGET PATH)
|
|
- set(${PATH} ${TARGET}/cmake)
|
|
- endmacro()
|
|
- else()
|
|
- macro(spvtools_config_package_dir TARGET PATH)
|
|
- set(${PATH} ${CMAKE_INSTALL_LIBDIR}/cmake/${TARGET})
|
|
- endmacro()
|
|
- endif()
|
|
+ macro(spvtools_config_package_dir TARGET PATH)
|
|
+ set(${PATH} ${CMAKE_INSTALL_DATADIR}/${TARGET})
|
|
+ endmacro()
|
|
|
|
macro(spvtools_generate_config_file TARGET)
|
|
file(WRITE ${CMAKE_BINARY_DIR}/${TARGET}Config.cmake
|
|
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
|
|
index 4e7e10c..278e439 100644
|
|
--- a/source/CMakeLists.txt
|
|
+++ b/source/CMakeLists.txt
|
|
@@ -387,7 +387,7 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
|
|
endif()
|
|
|
|
if(ENABLE_SPIRV_TOOLS_INSTALL)
|
|
- install(TARGETS ${SPIRV_TOOLS} ${SPIRV_TOOLS}-shared EXPORT ${SPIRV_TOOLS}Targets
|
|
+ install(TARGETS ${SPIRV_TOOLS} EXPORT ${SPIRV_TOOLS}Targets
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|