Skip to content
Snippets Groups Projects
Commit 63b59981 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Activate override warning

parent 33b26f32
No related branches found
No related tags found
2 merge requests!18Release after RAL,!17After 2nd RAL submission
......@@ -173,6 +173,16 @@ src/sensor/sensor_force_torque.cpp
src/sensor/sensor_inertial_kinematics.cpp
)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
message(STATUS "Using C++ compiler clang")
target_compile_options(${PROJECT_NAME} PRIVATE -Winconsistent-missing-override)
# using Clang
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
message(STATUS "Using C++ compiler gnu")
target_compile_options(${PROJECT_NAME} PRIVATE -Wsuggest-override)
# using GCC
endif()
# create the shared library
ADD_LIBRARY(${PLUGIN_NAME}
SHARED
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment