Folks,
my CMake is showing the variables names PYTHON_DEBUG_LIBRARY and PYTHON_LIBRARY_DEBUG, which I find meaning pretty much the same thing or confusing at least.
As far as I understand, the former is used by the VNL third party library.
And the latter is the one ITK’s FindITKPythonLibs.cmake is supposed to use.
If an effect of the CMake cache, then it can be ignored. If not I’m wondering whether the same name could be used to avoid duplicates/confusion.
However, I’ve checked locally that, building from master and after having deleted the cache, both variables are listed by CMake when configuring ITK with Python wrapping. I’m wondering whether it has to do with CMake itself rather than with ITK then.
Just to wrap up, I checked the CMake sources and both variables dwell in the CMake source code. And as hypothesized, one is indeed a legacy variable following a former naming convention. Brad King said that the way things are currently is just fine.