Skip to content

Commit 52aad53

Browse files
Do not treat warnings as errors
1 parent c9b0da6 commit 52aad53

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

patch/ros-kilted-foxglove-bridge.win.patch

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt
22
index a72a85b..8b69dda 100644
33
--- a/CMakeLists.txt
44
+++ b/CMakeLists.txt
5+
@@ -18,7 +18,7 @@ option(USE_LOCAL_SDK "Use pre-built Foxglove SDK binaries from local source tree
6+
7+
macro(enable_strict_compiler_warnings target)
8+
if (MSVC)
9+
- target_compile_options(${target} PRIVATE /WX /W4)
10+
+ target_compile_options(${target} PRIVATE /W4)
11+
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
12+
target_compile_options(${target} PRIVATE -Wall -Wextra -Wpedantic -Werror -Wold-style-cast -Wfloat-equal -Wmost -Wunused-exception-parameter)
13+
else()
514
@@ -91,7 +103,16 @@ else()
615
file(GLOB_RECURSE FOXGLOVE_SDK_SOURCES CONFIGURE_DEPENDS "${foxglove_sdk_SOURCE_DIR}/src/*.cpp")
716
target_sources(foxglove_cpp_static PRIVATE ${FOXGLOVE_SDK_SOURCES})

0 commit comments

Comments
 (0)