Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 1 | From 1d7612b063eb1fc7bf97bc27b13e1de596748aa1 Mon Sep 17 00:00:00 2001 |
| 2 | From: Sumit Garg <sumit.garg@linaro.org> |
| 3 | Date: Wed, 8 Jan 2020 04:58:30 +0000 |
| 4 | Subject: [PATCH] Fix library LZ4 lookup. |
| 5 | |
| 6 | Signed-off-by: Sumit Garg <sumit.garg@linaro.org> |
| 7 | --- |
| 8 | cmake/FindLZ4.cmake | 9 +++++++-- |
| 9 | 1 file changed, 7 insertions(+), 2 deletions(-) |
| 10 | |
| 11 | diff --git a/cmake/FindLZ4.cmake b/cmake/FindLZ4.cmake |
| 12 | index e97dd63e2b0..2f4694e727c 100644 |
| 13 | --- a/cmake/FindLZ4.cmake |
| 14 | +++ b/cmake/FindLZ4.cmake |
| 15 | @@ -1,5 +1,10 @@ |
| 16 | -find_path(LZ4_INCLUDE_DIR NAMES lz4.h) |
Andrew Geissler | bbbd5f4 | 2020-10-30 15:42:48 -0500 | [diff] [blame] | 17 | -find_library(LZ4_LIBRARIES NAMES lz4) |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 18 | +find_path(LZ4_INCLUDE_DIR |
| 19 | + NAMES lz4.h |
| 20 | + NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH) |
| 21 | + |
Andrew Geissler | bbbd5f4 | 2020-10-30 15:42:48 -0500 | [diff] [blame] | 22 | +find_library(LZ4_LIBRARIES |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 23 | + NAMES lz4 |
| 24 | + NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH) |
| 25 | |
| 26 | include(FindPackageHandleStandardArgs) |
| 27 | FIND_PACKAGE_HANDLE_STANDARD_ARGS( |
| 28 | -- |
| 29 | 2.17.1 |
| 30 | |