GET_FILENAME_COMPONENT(dir "${MXADataModel_LIBRARY}" PATH)
will put the PATH into the variable 'dir'
HTH,
David
On 6/28/07, Mike Jackson <[EMAIL PROTECTED]> wrote:
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
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake