[cmake-developers] [Review request] Topic FindPkgConfig_Extend-PKG_CONFIG_PATH
Brad King
brad.king at kitware.com
Tue Mar 11 10:55:57 EDT 2014
On 03/11/2014 10:43 AM, Daniele E. Domenichelli wrote:
> It is a quite common use case to get and set "path" environment
It is not very common within CMake's own modules:
$ git grep TO_NATIVE_PATH v3.0.0-rc1 -- Modules |wc -l
2
$ git grep TO_CMAKE_PATH v3.0.0-rc1 -- Modules |wc -l
24
# (and 6 of these are in one module)
We don't like to have behavior depend on environment variables more
than necessary. They may not still be set when CMake re-runs inside
the build system. That is one reason we CACHE the find results.
Setting an environment variable for a tool that runs under CMake
is a pretty special case in this topic.
-Brad
More information about the cmake-developers
mailing list