Skip to content

Commit

Permalink
Restricting target_compile_options -Werror=self-assign-overloaded to …
Browse files Browse the repository at this point in the history
…clang compiler.
  • Loading branch information
georgemp committed Jun 7, 2019
1 parent 1b4a5df commit 84ef756
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ set_target_properties(unit_tests PROPERTIES DEBUG_POSTFIX ${RTTR_DEBUG_POSTFIX}
CXX_STANDARD ${MAX_CXX_STANDARD})

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

if (MSVC)
target_compile_options(unit_tests PRIVATE /bigobj)
Expand Down

0 comments on commit 84ef756

Please sign in to comment.