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
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to