[cmake-developers] find_program HINTS no longer preferred over PATH (was: HINTS not correctly handled in find_program)
Brad King
brad.king at kitware.com
Wed Sep 9 11:01:59 EDT 2015
On 09/03/2015 03:51 AM, CHEVRIER, Marc wrote:
> 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.
Thanks, Marc.
Chuck, this was regressed by your changes in CMake 3.2:
Merge topic 'refactor-search-path-construction'
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=dd89506c
Please revise the logic to preserve the documented behavior:
http://www.cmake.org/cmake/help/v3.3/command/find_program.html
HINTS should be preferred before ENV{PATH}. Please also add
appropriate test cases (e.g. Tests/RunCMake/find_program) and
also check the behavior for other find_* commands.
Thanks,
-Brad
More information about the cmake-developers
mailing list