[CMake] FindBoost

James Sharpe mail at jsharpe.net
Mon Mar 29 14:25:50 EDT 2010


When specifying a minimum version for boost if cmake finds an older version
of boost it correctly errors when using find_package(Boost REQUIRED).
Subsequent runs of cmake run without error as the variables that were set to
the older version of boost are still in the cache and thus FindBoost skips
over the error. The FindBoost script should either unset the cache variables
on error so they aren't used incorrectly or check on each invocation that
the boost version is sufficient.

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100329/8f026fa2/attachment.htm>


More information about the CMake mailing list