Skip to content

Commit 235fd06

Browse files
Force CMake 3.5 for Snappy (#1600)
CMake 4.0 doesn't support cases when required version is too low Relates-To: MINOR Signed-off-by: Andrey Kashcheev <ext-andrey.kashcheev@here.com>
1 parent 6223287 commit 235fd06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

external/leveldb/CMakeLists.txt.leveldb.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ ExternalProject_Add(snappy
2727
GIT_SHALLOW 1
2828
INSTALL_DIR "@EXTERNAL_BINARY_INSTALL_DIR@"
2929
CMAKE_ARGS @COMMON_PLATFORM_FLAGS@
30+
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
3031
-DCMAKE_BUILD_TYPE=@CMAKE_BUILD_TYPE@
3132
-DCMAKE_INSTALL_LIBDIR=lib
3233
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>

0 commit comments

Comments
 (0)