[cmake-developers] [CMake 0011541]: find_program resolves symbolic links for paths in $PATH
Mantis Bug Tracker
mantis at public.kitware.com
Tue Nov 30 14:19:27 EST 2010
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=11541
======================================================================
Reported By: Lauro Moura
Assigned To:
======================================================================
Project: CMake
Issue ID: 11541
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2010-11-30 14:19 EST
Last Modified: 2010-11-30 14:19 EST
======================================================================
Summary: find_program resolves symbolic links for paths in
$PATH
Description:
find_program seems to be resolving symbolic links for paths in the default
search path.
Example: Maemo's Scratchbox links /target/<target-name>/usr to the current
active /usr. using find_program for python will return
/target/<target_name>/usr/bin/python instead of /usr/bin/python, making it
useless to store this information for use by other projects as <target-name> can
change in automatic builds, for example.
Is resolving symbolic links the expected behavior for find_program?
Steps to Reproduce:
Use find_program to search for a program that is in a symbolic link directory
also present in $PATH.
The returned value will have the source of the link instead of the link.
Additional Information:
If the directory link is given in the PATHS argument the program is returned
without resolving links.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-11-30 14:19 Lauro Moura New Issue
======================================================================
More information about the cmake-developers
mailing list