Not resolving Symlinks at all

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Not resolving Symlinks at all

Michael Jackson
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})
  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:

lrwxrwxrwx. 1 mjackson mjackson      22 Feb 26 10:41 libhdf5_debug.so
-> libhdf5_debug.so.7.4.0*
-rwxr-xr-x. 1 mjackson mjackson 8688176 Feb 26 10:41 libhdf5_debug.so.1.8.10*
lrwxrwxrwx. 1 mjackson mjackson      23 Feb 26 10:41
libhdf5_debug.so.7.4.0 -> libhdf5_debug.so.1.8.10*
lrwxrwxrwx. 1 mjackson mjackson      16 Feb 26 08:57 libhdf5.so ->
libhdf5.so.7.4.0*
-rwxr-xr-x. 1 mjackson mjackson 3076781 Feb 26 08:53 libhdf5.so.1.8.10*
lrwxrwxrwx. 1 mjackson mjackson      17 Feb 26 08:57 libhdf5.so.7.4.0
-> libhdf5.so.1.8.10


So the file pointed to by HDF5_LIBRARY_RELEASE really is a symlink but
CMake does not seem to think so? This is on CentOS 6 Fully patched
using self built CMake 2.8.10.1

Any help is appreciated. BTW - The same code works just fine on OS X.
_________________________________________________________
Mike Jackson                  [hidden email]
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio
--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Not resolving Symlinks at all

Kornel Benko

Am Dienstag, 26. Februar 2013 um 10:52:36, schrieb Michael Jackson <[hidden email]>

> 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


--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Not resolving Symlinks at all

Michael Jackson
I fell like an idiot. Thanks. That is the problem. Just have to tell my self to "slow down"..
Thanks
--
Mike Jackson <www.bluequartz.net>

On Feb 26, 2013, at 11:05 AM, Kornel Benko wrote:

> Am Dienstag, 26. Februar 2013 um 10:52:36, schrieb Michael Jackson <[hidden email]>
> > 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
> --

--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake