vcpkg/ports/spirv-tools/cmake-install.patch
Charlie Barto 9c5b3024bb
[spirv-cross,spirv-headers,spirv-tools] 2021-01-15 update (#15831)
* update spiv-{cross,tools,headers}

* update spriv-{cross,headers,tools} versions

* update versions

* fixup the C targets

* bump headers and remove shared lib from spirv-tools

* update versions.

* added fixup pkg-config

* update git version hash.

* format manifests

* git-trees

* Update ports/spirv-headers/vcpkg.json

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>

* Update ports/spirv-tools/portfile.cmake

* Update ports/spirv-cross/vcpkg.json

* update verson record

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
2021-04-19 17:09:40 -07:00

24 lines
701 B
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