[CMake] How to extract the directory path from find_library ?

2012-12-14 Thread Witold E Wolski
Hi, I am using FIND_LIBRARY(CPPUNIT_LIBRARY NAMES cppunit HINTS ${CPPUNIT_INCLUDE_DIR}/../lib) to find library locations. But what I am needing is the directory containing the lib and not the full path. How do I get it? cheers -- Witold Eryk Wolski Triemlistrasse 155 8047 Zuerich --

Re: [CMake] How to extract the directory path from find_library ?

2012-12-14 Thread Rolf Eike Beer
Am , schrieb Witold E Wolski: Hi, I am using FIND_LIBRARY(CPPUNIT_LIBRARY NAMES cppunit HINTS ${CPPUNIT_INCLUDE_DIR}/../lib) to find library locations. But what I am needing is the directory containing the lib and not the full path. How do I get it? cmake --help-command

Re: [CMake] How to extract the directory path from find_library ?

2012-12-14 Thread Witold E Wolski
Hi Eike, Thx for the good advice. Witold On 14 December 2012 14:32, Rolf Eike Beer e...@sf-mail.de wrote: Am , schrieb Witold E Wolski: Hi, I am using FIND_LIBRARY(CPPUNIT_LIBRARY NAMES cppunit HINTS ${CPPUNIT_INCLUDE_DIR}/../lib) to find library locations. But what I am needing is

Re: [CMake] How to extract the directory path from find_library ?

2012-12-14 Thread Mateusz Loskot
On 14 December 2012 13:32, Rolf Eike Beer e...@sf-mail.de wrote: Am , schrieb Witold E Wolski: Hi, I am using FIND_LIBRARY(CPPUNIT_LIBRARY NAMES cppunit HINTS ${CPPUNIT_INCLUDE_DIR}/../lib) to find library locations. But what I am needing is the directory containing the lib and not the