[CMake] Alternative locations for boost in cmake

Mateusz Loskot mateusz at loskot.net
Thu Oct 24 13:30:35 EDT 2019


On Thu, 24 Oct 2019 at 19:05, Mahmood Naderan via CMake <cmake at cmake.org> wrote:
>
> I have read https://cmake.org/cmake/help/v3.0/module/FindBoost.html which states some variables for boost library.
> I want to know where should I set these variables. For example, in the terminal, I have written
>
> $ export Boost_NO_SYSTEM_PATHS=ON

When you read word `variables` in CMake documentation,
it means CMake variables (also known as cache entries).
Otherwise, it would be qualified using word `environment`.

The CMake variables can be set via command line option -D [1]

[1] https://cmake.org/cmake/help/latest/manual/cmake.1.html

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net


More information about the CMake mailing list