From f15ddf8cf1f14612d2fec316605a36e68ec6ad11 Mon Sep 17 00:00:00 2001 From: Adam Phoenix Date: Mon, 10 Jun 2019 10:33:52 +0800 Subject: Fix for CMake 3.6 --- absl/copts/AbseilConfigureCopts.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'absl/copts') 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() -- cgit 1.4.1