Skip to content

Commit

Permalink
Restrict ignoring treat warning self-assign-overloaded as error to Cl…
Browse files Browse the repository at this point in the history
…ang versions greater than 6.0.1
  • Loading branch information
georgemp committed Jun 7, 2019
1 parent 84ef756 commit 7bd4e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ set_target_properties(unit_tests PROPERTIES DEBUG_POSTFIX ${RTTR_DEBUG_POSTFIX}
CXX_STANDARD ${MAX_CXX_STANDARD})

set_compiler_warnings(unit_tests)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.0.1)
target_compile_options(unit_tests PRIVATE -Wno-error=self-assign-overloaded)
endif()

Expand Down

0 comments on commit 7bd4e1c

Please sign in to comment.