aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/dawn/001-fix-windows-build.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/dawn/001-fix-windows-build.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/dawn/001-fix-windows-build.patch')
-rw-r--r--vcpkg/ports/dawn/001-fix-windows-build.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/ports/dawn/001-fix-windows-build.patch b/vcpkg/ports/dawn/001-fix-windows-build.patch
new file mode 100644
index 0000000..7db9098
--- /dev/null
+++ b/vcpkg/ports/dawn/001-fix-windows-build.patch
@@ -0,0 +1,23 @@
+diff --git a/src/cmake/DawnLibrary.cmake b/src/cmake/DawnLibrary.cmake
+index a5352433f0..d8aa1788d2 100644
+--- a/src/cmake/DawnLibrary.cmake
++++ b/src/cmake/DawnLibrary.cmake
+@@ -180,12 +180,12 @@ function(dawn_install_target name)
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ )
+ # When building in debug mode with MSVC, install PDB files together with binaries
+- if (MSVC)
+- get_target_property(target_type "${name}" TYPE)
+- if ((target_type STREQUAL "STATIC_LIBRARY") OR (target_type STREQUAL "SHARED_LIBRARY") OR (target_type STREQUAL "EXECUTABLE"))
+- install(FILES $<TARGET_PDB_FILE:${name}> DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL)
+- endif()
+- endif (MSVC)
++ # if (MSVC)
++ # get_target_property(target_type "${name}" TYPE)
++ # if ((target_type STREQUAL "STATIC_LIBRARY") OR (target_type STREQUAL "SHARED_LIBRARY") OR (target_type STREQUAL "EXECUTABLE"))
++ # install(FILES $<TARGET_PDB_FILE:${name}> DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL)
++ # endif()
++ # endif (MSVC)
+
+ # Automatically determine where each header should go based on its subdirectory in the include dir.
+ foreach(header IN LISTS arg_HEADERS)