Hi,
Attached is a minimal example.
To use it:
1. Build phase. Under find_program.BUG/build, use CMakeLists.txt to prepare
runtime part
2. Test phase. Under find_program.BUG/runtime, use CMakeLists.txt to show the
bug.
Here is the result on my SuSE Linux with CMake 3.3.1 (binaries retrieved
On 09/02/2015 09:09 AM, CHEVRIER, Marc wrote:
> On 02/09/15 14:58, "Brad King" wrote:
>> On 09/02/2015 05:31 AM, CHEVRIER, Marc wrote:
>>> find_program (MY_EXE my_exe HINTS PATH1 PATH2 PATH3)
>>
>> find_program (MY_EXE
>> NAMES my_exe
>> HINTS PATH1 PATH2 PATH3
>> )
> Same problem. HINTS
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
On 09/02/2015 05:31 AM, CHEVRIER, Marc wrote:
> find_program (MY_EXE my_exe HINTS PATH1 PATH2 PATH3)
Try it with
find_program (MY_EXE
NAMES my_exe
HINTS PATH1 PATH2 PATH3
)
-Brad
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
Same problem. HINTS which are also defined in the environment variable PATH are
ignored.
On 02/09/15 14:58, "Brad King" wrote:
>On 09/02/2015 05:31 AM, CHEVRIER, Marc wrote:
>> find_program (MY_EXE my_exe HINTS PATH1 PATH2 PATH3)
>
>Try it with
>
> find_program