Enable warnings on Windows

This commit is contained in:
Luetkebohle Ingo (CR/AEX3) 2019-08-02 16:35:16 +02:00
parent 60347e6de6
commit d1d425d1b3

View file

@ -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)