commontk / CTK

A set of common support code for medical imaging, surgical navigation, and related purposes.
https://commontk.org
Apache License 2.0
827 stars 480 forks source link

ENH: Increase minimum required CMake version to 3.16.3 #1208

Closed dzenanz closed 1 month ago

dzenanz commented 1 month ago

Avoids configure errors with the latest ITK and CMake 3.29.3:

6>CMake Warning (dev) at M:/a/Srd/ITK-build/ITKConfig.cmake:90 (if):
6>  Policy CMP0057 is not set: Support new IN_LIST if() operator.  Run "cmake
6>  --help-policy CMP0057" for policy details.  Use the cmake_policy command to
6>  set the policy and suppress this warning.
6>
6>  IN_LIST will be interpreted as an operator when the policy is set to NEW.
6>  Since the policy is not set the OLD behavior will be used.
6>Call Stack (most recent call first):
6>  Libs/ImageProcessing/ITK/Core/CMakeLists.txt:16 (find_package)
6>This warning is for project developers.  Use -Wno-dev to suppress it.
6>
6>CMake Error at M:/a/Srd/ITK-build/ITKConfig.cmake:90 (if):
6>  if given arguments:
6>
6>    "ITK_FIND_REQUIRED_ITKCommon" "OR" "M" "IN_LIST" "ITK_MODULES_ENABLED"
6>
6>  Unknown arguments specified
6>Call Stack (most recent call first):
6>  Libs/ImageProcessing/ITK/Core/CMakeLists.txt:16 (find_package)
6>
6>
6>-- Configuring incomplete, errors occurred!
dzenanz commented 1 month ago

@pieper @lassoan can someone review/merge this PR?

dzenanz commented 1 month ago

Thanks James!