Skip to content

Warnings are raised when ANTs is used via CMake FetchContent #1655

@dzenanz

Description

@dzenanz

I am trying to have an ITK remote module have ANTs as an external dependency. I use:

include(FetchContent)
FetchContent_Declare(
  ants_inner
  GIT_REPOSITORY https://github.com/ANTsX/ANTs
  GIT_TAG        62550fca38c731c20560528f19c65181e211c7d4  # 2024-01-12
)

During configure step, I get the following:

CMake Warning at VS22/_deps/ants_inner-src/CMake/ProjectSourceVersion.cmake:60 (message):
  git tag: "-128-NOTFOUND" does not match expected version format!
Call Stack (most recent call first):
  VS22/_deps/ants_inner-src/Version.cmake:10 (include)
  VS22/_deps/ants_inner-src/ANTS.cmake:19 (include)
  VS22/_deps/ants_inner-src/CMakeLists.txt:75 (include)

When did the error occur?

  • CMake configuration (cmake / ccmake)
  • Compilation (make)
  • Installation (make install)

Build environment

  • OS: Windows 11
  • OS version: 22H2, build 22621.3007
  • Type of system: Desktop

As used here:
dzenanz/ANTsWasm@671920e

Complete configure log of ANTsWasm:

ITK is setting ANTsWasm's MSVC_RUNTIME_LIBRARY to dynamic
Not using CCache
CMake Warning at VS22/_deps/ants_inner-src/CMake/ProjectSourceVersion.cmake:56 (message):
  git tag: "-128-NOTFOUND" does not match expected version format!
Call Stack (most recent call first):
  VS22/_deps/ants_inner-src/Version.cmake:10 (include)
  VS22/_deps/ants_inner-src/ANTS.cmake:19 (include)
  VS22/_deps/ants_inner-src/CMakeLists.txt:75 (include)


Building ANTS version "2.5.0.dev1-g671920e"
ITK is setting ANTS's MSVC_RUNTIME_LIBRARY to dynamic
antsAffineInitializer 
antsJointFusion 
DenoiseImage 
SurfaceBasedSmoothing 
ThresholdImage 
ResampleImage 
sccan 
N4BiasFieldCorrection 
N3BiasFieldCorrection 
KellyKapowski 
antsRegistration 
antsMotionCorrStats 
antsMotionCorr 
antsApplyTransforms 
LabelGeometryMeasures 
LabelClustersUniquely 
Atropos 
antsApplyTransformsToPoints 
ITK is setting WrapITK's MSVC_RUNTIME_LIBRARY to dynamic
ANTsWasm: Creating module.
ANTsWasm: Creating itkANTSRegistration submodule.
Configuring done
Generating done

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancements under development - feel free to join discussion if you'd like to contribute

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions