vcpkg/ports/rocksdb/0004-add-config-to-findpackage.patch

14 lines
330 B
Diff
Raw Normal View History

2020-10-13 08:13:33 +08:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f9c8f3346..11aa70db9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -154,7 +154,7 @@ else()
endif()
if(WITH_LZ4)
- find_package(lz4 REQUIRED)
+ find_package(lz4 CONFIG REQUIRED)
add_definitions(-DLZ4)
list(APPEND THIRDPARTY_LIBS lz4::lz4)
endif()