Hi,<br><br><div class="gmail_quote">On Wed, Jun 6, 2012 at 5:40 PM, vivek goel <span dir="ltr"><<a href="mailto:goelvivek2011@gmail.com" target="_blank">goelvivek2011@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am using following command to find pcre library <br><br>SET(CMAKE_LIBRARY_PATH "${CMAKE_SOURCE_DIR}/lib/linux/gcc/${BIT}/lib")<br>All compiled library are located in ${CMAKE_SOURCE_DIR}/lib/linux/gcc/${BIT}/lib<br>
<br>find_library(PCRE_LIBRARY <br>pcre<br>PATH <br>${CMAKE_SOURCE_DIR}/lib/linux/gcc/${BIT}/lib}<br><br>But every-time it is searching at /usr/lib/x86_64-linux-gnu/libpcre.so. How can I change order for library search path ?<br>
</blockquote><div><br></div><div>See the documentation for the function:</div><div><a href="http://cmake.org/cmake/help/v2.8.8/cmake.html#command:find_library">http://cmake.org/cmake/help/v2.8.8/cmake.html#command:find_library</a></div>
<div><br></div><div>As you can see 'PATH' is an unknown parameter for the function anyway. You probably want to provide HINTS. The exact logic of finding the libraries is explained there too.</div><div><br></div><div>
Andreas</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br><br><br><br clear="all">regards<span class="HOEnZb"><font color="#888888"><div>Vivek Goel</div>
<br>
</font></span><br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>