aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/velodyne-decoder/0001-fix-msvc-flags.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/velodyne-decoder/0001-fix-msvc-flags.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/velodyne-decoder/0001-fix-msvc-flags.patch')
-rw-r--r--vcpkg/ports/velodyne-decoder/0001-fix-msvc-flags.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/ports/velodyne-decoder/0001-fix-msvc-flags.patch b/vcpkg/ports/velodyne-decoder/0001-fix-msvc-flags.patch
new file mode 100644
index 0000000..c66eb6f
--- /dev/null
+++ b/vcpkg/ports/velodyne-decoder/0001-fix-msvc-flags.patch
@@ -0,0 +1,17 @@
+Backport of https://github.com/valgur/velodyne_decoder/commit/22809df3a4d550c3746b17aaca1d6c20692730c4
+
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -17,7 +17,11 @@
+ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
+
+ if(MSVC)
+- add_compile_options(/W4 /O2)
++ add_compile_options(
++ "$<$<CONFIG:RelWithDebInfo>:/O2>"
++ "$<$<CONFIG:Release>:/O2>"
++ /W4
++ )
+ else()
+ add_compile_options(
+ "$<$<CONFIG:Debug>:-ggdb3;-Og>"