I am sorry I cannot reproduce in Archlinux, gcc-10.2, cmake-3.19.2
Tested with ITK release branch.
cd /path//itk-src; git checkout release
cd /path/itk-build
cmake -G Ninja /path/itk-src -DModule_TotalVariation:BOOL=ON
ITK compiles successfully with some warnings.
Then I compile whatever hello world example, and it links ok.
I am wondering if you are using an old SHA for the module.
Open your /path/itk-build/CMakeCache.txt
And delete the option Module_TotalVariation_GIT_TAG
:
//Override default GIT_TAG value for remote module TotalVariation
Module_TotalVariation_GIT_TAG:STRING=e47fb5b1e2eef32cddb131d8ba47b78dbde9fbbd
Then, re-configure and re-build ITK, and do the same with your HelloWorld project that links to that freshly built ITK with -DITK_DIR=/path/itk-build
.
EDIT: To check the current SHA for the module see Update remote module in ITK