about summary refs log tree commit diff
path: root/absl
diff options
context:
space:
mode:
authorGennadiy Rozental <rogeeff@google.com>2019-06-18T17·43-0400
committerGitHub <noreply@github.com>2019-06-18T17·43-0400
commita13d3df2b3ba68aeead92e2d078fba0510d55024 (patch)
tree38e3878f6616f3df701d3830e0fd497ed9221848 /absl
parent310a11865c97c5cdcc42a4ee2c2e3578423afe69 (diff)
parentf15ddf8cf1f14612d2fec316605a36e68ec6ad11 (diff)
Merge pull request #323 from gosnik/master
Fix for CMake 3.6
Diffstat (limited to 'absl')
-rw-r--r--absl/copts/AbseilConfigureCopts.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/copts/AbseilConfigureCopts.cmake b/absl/copts/AbseilConfigureCopts.cmake
index eaef30b0e591..6394c15be938 100644
--- a/absl/copts/AbseilConfigureCopts.cmake
+++ b/absl/copts/AbseilConfigureCopts.cmake
@@ -24,7 +24,7 @@ elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
     if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
       # AppleClang doesn't have lsan
       # https://developer.apple.com/documentation/code_diagnostics
-      if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 3.5)
+      if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.5)
         set(ABSL_LSAN_LINKOPTS "-fsanitize=leak")
         set(ABSL_HAVE_LSAN ON)
       endif()