[CMake] find_library setting search path order
vivek goel
goelvivek2011 at gmail.com
Wed Jun 6 11:40:50 EDT 2012
I am using following command to find pcre library
SET(CMAKE_LIBRARY_PATH "${CMAKE_SOURCE_DIR}/lib/linux/gcc/${BIT}/lib")
All compiled library are located in
${CMAKE_SOURCE_DIR}/lib/linux/gcc/${BIT}/lib
find_library(PCRE_LIBRARY
pcre
PATH
${CMAKE_SOURCE_DIR}/lib/linux/gcc/${BIT}/lib}
But every-time it is searching at /usr/lib/x86_64-linux-gnu/libpcre.so.
How can I change order for library search path ?
regards
Vivek Goel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120606/e9fbf2f2/attachment-0001.htm>
More information about the CMake
mailing list