[CMake] find_library questions
Denis Scherbakov
denis_scherbakov at yahoo.com
Wed Aug 4 04:03:55 EDT 2010
>> 1) Is it possible to
retrieve the path where find_library found the library? E.g. so I can setup
..._LIBRARY_DIR correctly.
Yes, see GET_FILENAME_COMPONENT.
2) Is it possible to disable the "lib" prefix
that find_library always seems to prepend when searching? I have a library
that is called "thelibrary.so" instead of "libthelibrary.so".
Yes, specify name that you want to find. Like "NAMES libMyLib MyLib"
Denis
More information about the CMake
mailing list