[CMake] Is there a default value for CMAKE_MODULE_PATH?

Wagner, David david.wagner at intel.com
Wed Nov 9 12:09:47 EST 2016


On 09/11/2016 16:05, Jayesh Badwaik wrote:
> Hi,
>
> TL;DR
> Is there a default value for CMAKE_MODULE_PATH which allows me to use a module
> file from inside my PROJECT_SOURCE_DIR.
>
> Context:
> Over past few days, Boost has updated from version 1.61 to version 1.62. The
> latest version of CMake that I have (3.6.3) does not yet have the appropriate
> FindBoost.cmake and hence, issues warnings as shown in the postscript.
>

Have you tried setting Boost_ADDITIONAL_VERSIONS ? c.f FindBoost's documentation:

>    Boost_ADDITIONAL_VERSIONS
>                           - List of Boost versions not known to this module
>                             (Boost install locations may contain the version)

I don't know what changed in Boost 1.62 but doing so may be enough for you.

Alternatively, you can set CMAKE_MODULE_PATH by hand in your command line.

BR
David

-- 
David Wagner

complex != complicated
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.



More information about the CMake mailing list