InsightSoftwareConsortium / InsightSoftwareConsortium/ITK

[ITK 5.1] Links completely wrong. debug/optimized keywords ignored/removed

Open
#1,802 7 comments 0 reactions 2 assignees Claimed by @blowekamp View on GitHub
status:Use_Milestone_Backlog type:Bug
Dominant language
C++
Stars
1.7k
Forks
748
Avg merge
1d 1h
Merged PRs (30d)
64

Description

### Description

https://github.com/InsightSoftwareConsortium/ITK/blob/7900a8b6d63ec8201405eff3b46c8d2a4e563c45/CMake/ITKModuleMacros.cmake#L165-L167

If `_LIBRARIES` contains `debug/optimized` keywords those get removed here and ITK links both debug and release libraries in any configuration. `_LIBRARIES` contains these keywords as tested in VCPKG.
It also makes the exported target not link correctly. These lines of code need to be removed.

### Reproducibility
100%
### Versions
5.1
### Environment
vcpkg but platform won't matter for this one

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.