diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7cbaefbda14dbd6cc0736489b30a420db08156aa..b066ae80cc66694243c00fa56743141d2a71b93b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.20)
+cmake_minimum_required(VERSION 3.20...3.27)
 project(Detection_eddies LANGUAGES Fortran)
 set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS Debug Release Profile
   RelWithDebInfo)