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

Activate override warning

parent b1f98436
No related branches found
No related tags found
1 merge request!24After 2nd RAL submission
......@@ -233,6 +233,16 @@ src/yaml/processor_bundle_adjustment_yaml.cpp
# 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