Skip to content

Commit a854497

Browse files
committed
Set minimum version of AppleClang to 10.0.1.10010046 for warning self-assign-overload.
1 parent 7404cd5 commit a854497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unit_tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ message("CMAKE_CXX_COMPILER_ID: ${CMAKE_CXX_COMPILER_ID}")
5959
message("CMAKE_CXX_COMPILER_VERSION: ${CMAKE_CXX_COMPILER_VERSION}")
6060
message("XCODE_VERSION: ${XCODE_VERSION}")
6161

62-
if ((CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "10.0.0.0")
62+
if ((CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "10.0.1.10010046")
6363
OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "6.0.1")
6464
OR (XCODE AND XCODE_VERSION VERSION_GREATER "10.1"))
6565
target_compile_options(unit_tests PRIVATE -Wno-error=self-assign-overloaded)

0 commit comments

Comments
 (0)