Use cmake variable CMAKE_PREFIX_PATH Example: cmake -B out -DCMAKE_PREFIX_PATH=/mypath/ . Assuming that your boost is installed under /mypath/, in other words, you have those directory tree: mypath ├── include │ └── boost └── lib On 12/15/23 18:45, Alain O' Miniussi via Boost-users wrote:
Hi,
I'd like to find Boost 1.84 from cmake 3.28 in config mode (https://cmake.org/cmake/help/latest/command/find_package.html#id6)
My Boost distribution is in a non standard location <mypath> meaning, IF i UNDERSTAND CORRECTLY, that cmake will try to set Boost_DIR to <mypath>/lib/cmake/Boost-1.84.0/BoostConfig.cmake.
Which environnement should I set so that it works ?
Thanks
---- Alain Miniussi DSI, Pôles Calcul et Genie Log. Observatoire de la Côte d'Azur Tél. : +33609650665 _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users