Fix for CMake 3.6
This commit is contained in:
parent
0238ab0a83
commit
f15ddf8cf1
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
||||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
# AppleClang doesn't have lsan
|
# AppleClang doesn't have lsan
|
||||||
# https://developer.apple.com/documentation/code_diagnostics
|
# 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_LSAN_LINKOPTS "-fsanitize=leak")
|
||||||
set(ABSL_HAVE_LSAN ON)
|
set(ABSL_HAVE_LSAN ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue