summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Phoenix <gosnik@gmail.com>2019-06-10 10:33:52 +0800
committerGravatar Adam Phoenix <gosnik@gmail.com>2019-06-10 10:33:52 +0800
commitf15ddf8cf1f14612d2fec316605a36e68ec6ad11 (patch)
treefcbca81faa1af1071e1f0d98275bbbb2b6ed568d
parent0238ab0a831f179518c1a814f9584e99da2d75a3 (diff)
Fix for CMake 3.6
-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 eaef30b0..6394c15b 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()