[cmake-developers] find_program HINTS no longer preferred over PATH

CHEVRIER, Marc marc.chevrier at sap.com
Mon Sep 14 03:05:02 EDT 2015


Any news on this subject?
I think it is a critical bug because behaviour is broken. So I cannot rely on find_executable anymore to get the expected program!

Marc



On 09/09/15 20:20, "Brad King" <brad.king at kitware.com> wrote:

>On 09/09/2015 11:50 AM, Chuck Atkins wrote:
>> From what I can tell, the search order is still preserved as expected.
>
>The example Marc attached earlier shows that the problem is when
>ENV{PATH} contains one of the *same* values that is one of the HINTS.
>The fact that a path appears in ENV{PATH} somehow causes it to be
>dropped from the list of HINTS or otherwise ordered after the other
>hints.
>
>-Brad
>


More information about the cmake-developers mailing list