@@ -152,6 +152,8 @@ ExternalProject_Add(gtest
152152 LOG_INSTALL
153153 1
154154 CMAKE_ARGS
155+ # Force CMake to run with the policy behavior of version 3.5 to avoid cases where a higher version of CMake does not compile
156+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
155157 -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX}
156158 -DCMAKE_BUILD_TYPE=${LIB_BUILD_TYPE}
157159 BUILD_ALWAYS
@@ -192,6 +194,8 @@ ExternalProject_Add(gflags
192194 BUILD_ALWAYS
193195 1
194196 CMAKE_ARGS
197+ # Force CMake to run with the policy behavior of version 3.5 to avoid cases where a higher version of CMake does not compile
198+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
195199 -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX}
196200 -DCMAKE_BUILD_TYPE=${LIB_BUILD_TYPE}
197201 -DGFLAGS_NAMESPACE=gflags
@@ -266,6 +270,8 @@ ExternalProject_Add(glog
266270 BUILD_ALWAYS
267271 1
268272 CMAKE_ARGS
273+ # Force CMake to run with the policy behavior of version 3.5 to avoid cases where a higher version of CMake does not compile
274+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
269275 -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX}
270276 -DCMAKE_BUILD_TYPE=${LIB_BUILD_TYPE}
271277 -DWITH_GFLAGS=ON
@@ -307,6 +313,8 @@ ExternalProject_Add(snappy
307313 LOG_INSTALL
308314 1
309315 CMAKE_ARGS
316+ # Force CMake to run with the policy behavior of version 3.5 to avoid cases where a higher version of CMake does not compile
317+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
310318 -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX}
311319 -DCMAKE_BUILD_TYPE=${LIB_BUILD_TYPE}
312320 -DSNAPPY_BUILD_TESTS=OFF
@@ -345,6 +353,8 @@ ExternalProject_Add(zstd
345353 SOURCE_SUBDIR
346354 build/cmake
347355 CMAKE_ARGS
356+ # Force CMake to run with the policy behavior of version 3.5 to avoid cases where a higher version of CMake does not compile
357+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
348358 -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX}
349359 -DCMAKE_BUILD_TYPE=${LIB_BUILD_TYPE}
350360 -DBUILD_TESTING=OFF
@@ -381,6 +391,8 @@ ExternalProject_Add(fmt
381391 LOG_INSTALL
382392 1
383393 CMAKE_ARGS
394+ # Force CMake to run with the policy behavior of version 3.5 to avoid cases where a higher version of CMake does not compile
395+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
384396 -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX}
385397 -DCMAKE_BUILD_TYPE=${LIB_BUILD_TYPE}
386398 BUILD_ALWAYS
@@ -422,6 +434,8 @@ ExternalProject_Add(lz4
422434 SOURCE_SUBDIR
423435 build/cmake
424436 CMAKE_ARGS
437+ # Force CMake to run with the policy behavior of version 3.5 to avoid cases where a higher version of CMake does not compile
438+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
425439 -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX}
426440 -DCMAKE_BUILD_TYPE=${LIB_BUILD_TYPE}
427441 -DBUILD_TESTING=OFF
@@ -458,6 +472,8 @@ ExternalProject_Add(zlib
458472 LOG_INSTALL
459473 1
460474 CMAKE_ARGS
475+ # Force CMake to run with the policy behavior of version 3.5 to avoid cases where a higher version of CMake does not compile
476+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
461477 -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX}
462478 -DCMAKE_BUILD_TYPE=${LIB_BUILD_TYPE}
463479 -DZLIB_USE_STATIC_LIBS=ON
@@ -489,6 +505,8 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
489505 LOG_INSTALL
490506 1
491507 CMAKE_ARGS
508+ # Force CMake to run with the policy behavior of version 3.5 to avoid cases where a higher version of CMake does not compile
509+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
492510 -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX}
493511 -DCMAKE_BUILD_TYPE=${LIB_BUILD_TYPE}
494512 -DGPERFTOOLS_BUILD_STATIC=ON
@@ -558,6 +576,8 @@ ExternalProject_Add(protobuf
558576 SOURCE_SUBDIR
559577 cmake
560578 CMAKE_ARGS
579+ # Force CMake to run with the policy behavior of version 3.5 to avoid cases where a higher version of CMake does not compile
580+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
561581 -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX}
562582 -DCMAKE_BUILD_TYPE=${LIB_BUILD_TYPE}
563583 -DBUILD_SHARED_LIBS=FALSE
@@ -607,6 +627,8 @@ ExternalProject_Add(rocksdb
607627 BUILD_ALWAYS
608628 1
609629 CMAKE_ARGS
630+ # Force CMake to run with the policy behavior of version 3.5 to avoid cases where a higher version of CMake does not compile
631+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
610632 -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX}
611633 -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}
612634 -DCMAKE_BUILD_TYPE=${LIB_BUILD_TYPE}
@@ -648,6 +670,8 @@ ExternalProject_Add(rediscache
648670 SOURCE_SUBDIR
649671 ""
650672 CMAKE_ARGS
673+ # Force CMake to run with the policy behavior of version 3.5 to avoid cases where a higher version of CMake does not compile
674+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
651675 -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX}
652676 -DCMAKE_INSTALL_INCLUDEDIR=${INSTALL_INCLUDEDIR}
653677 -DCMAKE_INSTALL_LIBDIR=${INSTALL_LIBDIR}
0 commit comments