Skip to content

Commit 6e0e04a

Browse files
committed
add win patch
Signed-off-by: wep21 <[email protected]>
1 parent 9680d7f commit 6e0e04a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

patch/ros-jazzy-ouster-ros.win.patch

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index e07dcf4..7298243 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -23,7 +23,13 @@ find_package(pcl_conversions REQUIRED)
6+
find_package(tf2_eigen REQUIRED)
7+
8+
# ==== Options ====
9+
-add_compile_options(-Wall -Wextra)
10+
+if(MSVC)
11+
+ add_compile_options(/W2)
12+
+ add_compile_definitions(NOMINMAX _USE_MATH_DEFINES WIN32_LEAN_AND_MEAN)
13+
+else()
14+
+ add_compile_options(-Wall -Wextra)
15+
+endif()
16+
+
17+
if(NOT DEFINED CMAKE_CXX_STANDARD)
18+
set(CMAKE_CXX_STANDARD 17)
19+
set(CMAKE_CXX_STANDARD_REQUIRED ON)

0 commit comments

Comments
 (0)