ITK Linker error
Fresh checkout from gitlab. ITK 5.x.
Getting this linker error; Looks like deprecated functions in ITK. Any way to resolve this? https://discourse.itk.org/t/mutex-cleanup/1183
CMakeFiles/OTBMetadata.dir/otbImageMetadataInterfaceFactory.cxx.o: In function `otb::ImageMetadataInterfaceFactory::RegisterBuiltInFactories()':
otbImageMetadataInterfaceFactory.cxx:(.text+0x6fa): undefined reference to `itk::SimpleMutexLock::Lock()'
otbImageMetadataInterfaceFactory.cxx:(.text+0x9d0): undefined reference to `itk::SimpleMutexLock::Unlock()'
otbImageMetadataInterfaceFactory.cxx:(.text+0x9f8): undefined reference to `itk::SimpleMutexLock::SimpleMutexLock()'
otbImageMetadataInterfaceFactory.cxx:(.text+0x9ff): undefined reference to `itk::SimpleMutexLock::~SimpleMutexLock()'
otbImageMetadataInterfaceFactory.cxx:(.text+0xb0d): undefined reference to `itk::SimpleMutexLock::Unlock()'
CMakeFiles/OTBMetadata.dir/otbOpticalImageMetadataInterfaceFactory.cxx.o: In function `otb::OpticalImageMetadataInterfaceFactory::RegisterBuiltInFactories()':
otbOpticalImageMetadataInterfaceFactory.cxx:(.text+0x4ba): undefined reference to `itk::SimpleMutexLock::Lock()'
otbOpticalImageMetadataInterfaceFactory.cxx:(.text+0x694): undefined reference to `itk::SimpleMutexLock::Unlock()'
otbOpticalImageMetadataInterfaceFactory.cxx:(.text+0x6bc): undefined reference to `itk::SimpleMutexLock::SimpleMutexLock()'
otbOpticalImageMetadataInterfaceFactory.cxx:(.text+0x6c3): undefined reference to `itk::SimpleMutexLock::~SimpleMutexLock()'
otbOpticalImageMetadataInterfaceFactory.cxx:(.text+0x784): undefined reference to `itk::SimpleMutexLock::Unlock()'
CMakeFiles/OTBMetadata.dir/otbSarImageMetadataInterfaceFactory.cxx.o: In function `otb::SarImageMetadataInterfaceFactory::RegisterBuiltInFactories()':
otbSarImageMetadataInterfaceFactory.cxx:(.text+0x4ba): undefined reference to `itk::SimpleMutexLock::Lock()'
otbSarImageMetadataInterfaceFactory.cxx:(.text+0x5d7): undefined reference to `itk::SimpleMutexLock::Unlock()'
otbSarImageMetadataInterfaceFactory.cxx:(.text+0x5ff): undefined reference to `itk::SimpleMutexLock::SimpleMutexLock()'
otbSarImageMetadataInterfaceFactory.cxx:(.text+0x606): undefined reference to `itk::SimpleMutexLock::~SimpleMutexLock()'
otbSarImageMetadataInterfaceFactory.cxx:(.text+0x69d): undefined reference to `itk::SimpleMutexLock::Unlock()'
''
Edited by Guillaume Pasero