Skip to content

Commit

Permalink
Merge 629d832 into b3a131c
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemp committed Jun 8, 2019
2 parents b3a131c + 629d832 commit 4ccb35d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ 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 ((NOT XCODE AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.0.1) OR (XCODE AND XCODE_VERSION VERSION_GREATER 10.1))
target_compile_options(unit_tests PRIVATE -Wno-error=self-assign-overloaded)
endif()
endif()

if (MSVC)
target_compile_options(unit_tests PRIVATE /bigobj)
Expand All @@ -72,4 +77,4 @@ add_subdirectory(plugin)
add_dependencies(unit_tests unit_test_plugin)

message(STATUS "Scanning " ${PROJECT_NAME} " module finished!")
message(STATUS "")
message(STATUS "")

0 comments on commit 4ccb35d

Please sign in to comment.