[cmake-developers] [BUG] HINTS not correctly handled in find_program

CHEVRIER, Marc marc.chevrier at sap.com
Wed Sep 2 05:31:33 EDT 2015


Hi,

I discovered a curious problem regarding handling of argument HINTS.
If I use the following command:

find_program (MY_EXE my_exe HINTS PATH1 PATH2 PATH3)

And my_exe is available in various paths. In this case, paths specified in HINTS AND also defined in environment variable PATH are ignored !
For example, with environment variable PATH=PATH1:PATH2, find_program will gives PATH3/my_exe as result.

This problem occurs on Windows and Linux (at least) in versions 3.2.1 and 3.3.1. The behavior is correct with version 3.1.3.

Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150902/bc241742/attachment.html>


More information about the cmake-developers mailing list