FindBoost: BOOST_ROOT and other hints set via environment not reported in debug output
Set BOOST_ROOT
, BOOST_INCLUDEDIR
, BOOST_LIBRARYDIR
hints as environment variable and request CMake to print the module's debug output:
export BOOST_ROOT=/opt/boost-1.68
export BOOST_INCLUDEDIR=$BOOST_ROOT/include
export BOOST_LIBRARYDIR=$BOOST_ROOT/lib
cmake -DBoost_DEBUG=ON ...
Observe, no values of the declared hints are reported:
Declared as CMake or Environmental Variables:
-- [ .../FindBoost.cmake:1262 ] BOOST_ROOT =
-- [ .../FindBoost.cmake:1264 ] BOOST_INCLUDEDIR =
-- [ .../FindBoost.cmake:1266 ] BOOST_LIBRARYDIR =
This issue can be observed on both, Linux and Windows. I have tried and managed to reproduce the issue with CMake 3.13 and 3.14.