From 7ba9e2c3f2873434a89cccd2e63c502b843a8dda Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Tue, 19 Sep 2023 15:57:28 +0200 Subject: [PATCH] CMake >= 3.10: ask the end user to enforce this --- base.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base.cmake b/base.cmake index c8148059f..f53544ff7 100644 --- a/base.cmake +++ b/base.cmake @@ -120,7 +120,10 @@ # if(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 3.10) - cmake_minimum_required(VERSION 3.10) + message( + FATAL_ERROR + "JRL-CMakemodules require CMake >= 3.10. Please update your main 'cmake_minimum_required'" + ) endif() set(PROJECT_JRL_CMAKE_MODULE_DIR