[CMake] Not resolving Symlinks at all
Kornel Benko
kornel at lyx.org
Tue Feb 26 11:05:09 EST 2013
Am Dienstag, 26. Februar 2013 um 10:52:36, schrieb Michael Jackson <mike.jackson at bluequartz.net>
> I have the following code:
>
> message(STATUS "Found HDFLibrary ${HDF5_LIBRARY_RELEASE}")
>
> if(IS_SYMLINK ${HDF_LIBRARY_DEBUG})
> message(STATUS "SYMLINK: ${HDF_LIBRARY_DEBUG}")
> get_filename_component(test ${HDF_LIBRARY_DEBUG} REALPATH)
> message(STATUS "Real Path: ${test}")
> endif()
> if(IS_SYMLINK ${HDF_LIBRARY_RELEASE})
You surely mean ${HDF5_LIBRARY_RELEASE} here.
> message(STATUS "SYMLINK: ${HDF_LIBRARY_RELEASE}")
> get_filename_component(test ${HDF_LIBRARY_RELEASE} REALPATH)
> message(STATUS "Real Path: ${test}")
> endif()
>
> The issue is that I am not dropping into the "IF(IS_SYMLINK)"
> conditional. The HDF5_LIBRARY_RELEASE is
> /home/mjackson/DREAM3D_SDK/hdf5-1.8.10/lib/libhdf5.so and if we do an
> "ls" on the parent directory we get this:
OK, but you ask for "${HDF_LIBRARY_RELEASE}", not for "${HDF5_LIBRARY_RELEASE}"
Kornel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130226/5956899f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130226/5956899f/attachment-0001.pgp>
More information about the CMake
mailing list