From 500243d6fd7aa6b3d3c899524b788275563fcc7c Mon Sep 17 00:00:00 2001 From: Vicente Adolfo Bolea Sanchez Date: Fri, 25 Oct 2024 17:04:39 -0400 Subject: [PATCH] fix(cmake): increase min required cmake when using bloscs2 --- cmake/DetectOptions.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/DetectOptions.cmake b/cmake/DetectOptions.cmake index 55f29daba5..436587056b 100644 --- a/cmake/DetectOptions.cmake +++ b/cmake/DetectOptions.cmake @@ -77,6 +77,10 @@ elseif(ADIOS2_USE_Blosc2) find_package(Blosc2 2.10.1) endif() if(Blosc2_FOUND) + if (CMAKE_VERSION VERSION_LESS 3.18) + message(FATAL_ERROR "Blosc2 dependency requires CMake>=3.18.") + endif() + set(ADIOS2_HAVE_Blosc2 TRUE) if(TARGET Blosc2::blosc2_shared) set(blosc2_shlib_available ON)