Re: [CMake] return value of find_library

2011-09-26 Thread Michael Hertling
On 09/23/2011 09:20 PM, Yifei Li wrote: > On Sep 22, 2011, at 2:39 PM, David Cole wrote: > >> It should always be a full path for a valid found library. Under what >> circumstances are you getting exactly "mylib" ? ? > Here is a real example: > > find_package(OpenMesh) > message("${OPENMESH_LIBRA

Re: [CMake] return value of find_library

2011-09-23 Thread Yifei Li
On Sep 22, 2011, at 2:39 PM, David Cole wrote: > It should always be a full path for a valid found library. Under what > circumstances are you getting exactly "mylib" … ? Here is a real example: find_package(OpenMesh) message("${OPENMESH_LIBRARY}") find_package(ARPACK) message("${ARPACK_LIBRAR

Re: [CMake] return value of find_library

2011-09-22 Thread David Cole
It should always be a full path for a valid found library. Under what circumstances are you getting exactly "mylib" ... ? On Thu, Sep 22, 2011 at 11:26 AM, Yifei Li wrote: > Hi all, > > Say I have find_library(MYLIB mylib  PATHS …) ,   I don't understand why > MYLIB sometimes is a full path to

[CMake] return value of find_library

2011-09-22 Thread Yifei Li
Hi all, Say I have find_library(MYLIB mylib PATHS …) , I don't understand why MYLIB sometimes is a full path to mylib and sometimes only contains 'mylib'. Thanks Yifei -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.h