[Cmake] Looking for the solution - FIND_*
David Svoboda
xsvobod2 at informatics.muni.cz
Thu, 26 Feb 2004 15:00:53 +0100
On Thu, 26 Feb 2004, Amitha Perera wrote:
> David Svoboda wrote about canonical paths in CMake:
> > Is it a bug or is it correct??? And how to fix it easily?
>
> David,
>
> CMake often has to deal with the question of whether
> /a/b/c/file
> and
> /d/e/f/file
>
> are actually the same file. So, CMake currently expands all paths to a
> canonical path, and only uses thoses. That means that all symbolic
> path information is lost in the process. This often a pain, but I
> think fixing this will involve significant changes in CMake.
>
> For your particular problem, perhaps you could do a separate find path
>
> FIND_PATH( my_orig_lib lib ${CANONICAL_PATH} )
>
> IF( ${my_orig_lib} MATCHES ${current_lib} )
> ...
> ENDIF( ... )
>
> Amitha.
Yes, I used it as one possible solution.
Thank you very much for your response!!!
Best regards
David