summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnyOldName3 <krizdjali+gitlab@gmail.com>2021-11-06 18:48:48 +0000
committerAnyOldName3 <krizdjali+gitlab@gmail.com>2021-11-06 18:48:48 +0000
commitcd37504d0eb8e23a3c88b278c37bdd3f9520097f (patch)
treef290618364793d293fb4d6b05ed4dde79e6902b8
parent5fbfbb3d846d7924eb5722a074f5546fb8269237 (diff)
Resave hint variables to cache so they'll still exist after a reconfigure6018-reconfiguring-on-windows-without-ci-script-loses-lz4
-rw-r--r--cmake/FindLZ4.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/FindLZ4.cmake b/cmake/FindLZ4.cmake
index ec854c6b18..5b148cb64e 100644
--- a/cmake/FindLZ4.cmake
+++ b/cmake/FindLZ4.cmake
@@ -95,6 +95,8 @@ include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LZ4 DEFAULT_MSG
LZ4_LIBRARY LZ4_INCLUDE_DIR LZ4_VERSION)
+set(LZ4_INCLUDE_DIR ${LZ4_INCLUDE_DIR} CACHE PATH "LZ4 include dir hint")
+set(LZ4_LIBRARY ${LZ4_LIBRARY} CACHE FILEPATH "LZ4 library path hint")
mark_as_advanced(LZ4_INCLUDE_DIR LZ4_LIBRARY)
set(LZ4_LIBRARIES ${LZ4_LIBRARY})