[cmake-developers] CMake 3.0 find_path changes?

Brad King brad.king at kitware.com
Wed Jun 18 10:45:54 EDT 2014


On 06/17/2014 02:21 PM, "Matthäus G. Chajdas" wrote:
> Notice that I have to repeat ENV now for every environment variable, and
> I had to add "include" to PATH_SUFFIXES. Without repeating ENV, only the
> first environment variable is expanded. However, I cannot find anything
> in the CMake 3.0.0 release notes regarding find_path which would explain
> why these changes are necessary, and this code used to work with CMake
> 2.8.12. Is this a regression, or was I simply lucky that it worked?

I'm not aware that this behavior was changed.  FYI, the "ENV var"
syntax has always required the "ENV" to be repeated for each var.
One can see the implementation here:

 http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmFindBase.cxx;hb=v3.0.0#l40

The code has not changed since 2006.

-Brad




More information about the cmake-developers mailing list