FindBoost.cmake with Boost_USE_DEBUG_PYTHON incorrectly apeends 'y' tag for all libraries
When trying to find boost with Boost_USE_DEBUG_PYTHON
, CMake is unable to find debug versions of all libraries except python. The reason is that y
tag is appended unconditionally for all libraries, but only python (and perhaps numpy and mpi) has this tag.
https://gitlab.kitware.com/cmake/cmake/-/blob/v3.23.0/Modules/FindBoost.cmake#L1954
Compare:
boost_filesystem-vc140-mt-gd.lib
and boost_python27-vc140-mt-gyd.lib
I have a very ugly fix for that find_boost_python.patch, but I also have a feeling there is a more elegant solution.
Edited by Brad King