From 867bbc670bce2b5c1ab295491d1c2cff79bc5388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Tue, 3 Jan 2023 18:34:08 -0500 Subject: [PATCH] COMP: Match CMake minimum required version to ITK's Match CMake minimum required version to ITK's. Fixes: ``` CMake Warning at D:/a/ITKTextureFeatures/ITK/CMake/ITKModuleExternal.cmake:12 (message): -- cmake_minimum_required of 3.10.2 is not enough. cmake_minimum_required must be at least 3.16.3 Call Stack (most recent call first): CMakeLists.txt:8 (include) -- This is needed to allow proper setting of CMAKE_MSVC_RUNTIME_LIBRARY. -- Do not be surprised if you run into link errors of the style: LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_Static' doesn't match value 'MDd_Dynamic' in module.obj cmake_minimum_required must be at least 3.16.3 Call Stack (most recent call first): CMakeLists.txt:21 (include) ``` raised for example at: https://open.cdash.org/build/8374782/configure --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 833e373..1a2e5cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ project(TextureFeatures) -cmake_minimum_required(VERSION 3.10.2) +cmake_minimum_required(VERSION 3.16.3) if(NOT ITK_SOURCE_DIR) find_package(ITK 4.10 REQUIRED)