[CMake] Finding Parent Directory for a Library
Mike Jackson
imikejackson at gmail.com
Thu Jun 28 16:02:34 EDT 2007
I need to get the Parent Directory for a library so I can add that
directory to the LINK_DIRECTORIES().
I have this so far:
FIND_LIBRARY(MXADataModel_LIBRARY "MXADataModel"
/usr/local/lib
/usr/lib
"${MXA_DIR}/lib"
CACHE
)
Which will put the path to libMXADataModel.dylib" into the variable,
How do I get its parent?
--
Mike Jackson
imikejackson & gmail * com
More information about the CMake
mailing list