MantisBT - CMake
View Issue Details
0011541CMakeCMakepublic2010-11-30 14:192010-12-09 10:40
Lauro Moura 
Brad King 
normalmajoralways
closedfixed 
amd64Ubuntu10.04
CMake-2-8 
 
0011541: find_program resolves symbolic links for paths in $PATH
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?
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.
If the directory link is given in the PATHS argument the program is returned without resolving links.
No tags attached.
duplicate of 0010335closed Brad King FIND_XXX problem with symlinks when using ENV 
Issue History
2010-11-30 14:19Lauro MouraNew Issue
2010-12-01 07:32Marcel LooseNote Added: 0023634
2010-12-09 10:40Brad KingAssigned To => Brad King
2010-12-09 10:40Brad KingStatusnew => assigned
2010-12-09 10:40Brad KingRelationship addedduplicate of 0010335
2010-12-09 10:40Brad KingStatusassigned => closed
2010-12-09 10:40Brad KingResolutionopen => fixed

Notes
(0023634)
Marcel Loose   
2010-12-01 07:32   
Is this issue somehow related to 0010335 ?