mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-03 22:30:29 +00:00
FindBoost: unset cache variables if the lib dir changes
This fixes a regression introduced by commit v3.3.0-rc1~5^2~2
(FindBoost: Search for debug and release libraries separately,
2015-01-26). The `_Boost_CHANGE_LIBDIR` variable was split into
`_Boost_CHANGE_LIBDIR_{DEBUG,RELEASE}` but one usage site was not
updated.
This commit is contained in:
@@ -1463,7 +1463,7 @@ if(NOT _Boost_THREAD_DEPENDENCY_LIBS EQUAL -1)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# If the user changed any of our control inputs flush previous results.
|
# If the user changed any of our control inputs flush previous results.
|
||||||
if(_Boost_CHANGE_LIBDIR OR _Boost_CHANGE_LIBNAME)
|
if(_Boost_CHANGE_LIBDIR_DEBUG OR _Boost_CHANGE_LIBDIR_RELEASE OR _Boost_CHANGE_LIBNAME)
|
||||||
foreach(COMPONENT ${_Boost_COMPONENTS_SEARCHED})
|
foreach(COMPONENT ${_Boost_COMPONENTS_SEARCHED})
|
||||||
string(TOUPPER ${COMPONENT} UPPERCOMPONENT)
|
string(TOUPPER ${COMPONENT} UPPERCOMPONENT)
|
||||||
foreach(c DEBUG RELEASE)
|
foreach(c DEBUG RELEASE)
|
||||||
|
|||||||
Reference in New Issue
Block a user