Skip to content

Commit

Permalink
fix for g++
Browse files Browse the repository at this point in the history
  • Loading branch information
lwinkler committed Oct 14, 2022
1 parent 74abfdc commit f43d654
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/inheritance/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
pop_add_objects("global_ns::child_ns::child;global_ns::parent_a;global_ns::parent_b_ns::parent_b" "child.hpp")

# Avoid warnings: Some methods are not marked override
add_definitions("-Winconsistent-missing-override")
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_definitions("-Winconsistent-missing-override")
endif()

add_executable(main_inheritance main.cpp
${CMAKE_CURRENT_BINARY_DIR}/global_ns/parent_a.iface.hpp
Expand Down

0 comments on commit f43d654

Please sign in to comment.