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

Activate override warning

parent ab3eb138
No related branches found
No related tags found
2 merge requests!30Release after RAL,!29After 2nd RAL submission
......@@ -258,6 +258,17 @@ endif(csm_FOUND)
# SET(SRCS_WRAPPER)
# ENDIF(Ceres_FOUND)
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