diff --git a/tracetools/CMakeLists.txt b/tracetools/CMakeLists.txt index cb59e34..1ff1a22 100644 --- a/tracetools/CMakeLists.txt +++ b/tracetools/CMakeLists.txt @@ -8,6 +8,8 @@ endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic) +elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") + add_compile_options(/W4) endif() find_package(ament_cmake_ros REQUIRED)