From a9c661941a5a9c1a743d67a0b6c05db53e9bb347 Mon Sep 17 00:00:00 2001 From: Gnorkus Date: Thu, 4 Dec 2025 12:03:51 -0500 Subject: [PATCH] Higher minimum required CMake version to 3.5 To build using Cuda Version 13 and C++20, Cmake version 4.2.0 is required. But this causes the build to crash due to the fact the Cmake version 4.2.0 doesn't accept a minimum less than 3.5 for legacy builds. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 716e493..fb73ed6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ include(ExternalProject) include(ProcessorCount) -cmake_minimum_required(VERSION 3.16 FATAL_ERROR) # Ensure user has a compatible version of CMake +cmake_minimum_required(VERSION 3.5 FATAL_ERROR) # Ensure user has a compatible version of CMake project(ApriltagCuda LANGUAGES CUDA CXX) # Set project name and specify the languages used