sorry for typo it was path. <br>but still it doesn&#39;t work <div><div>find_library(PCRE_LIBRARY pcre</div><div>HINTS ${CMAKE_SOURCE_DIR}/lib/linux/gcc/${BIT}/lib</div><div>PATHS ${CMAKE_SOURCE_DIR}/lib/linux/gcc/${BIT}/lib</div>
<div>)</div><div><br></div><div>again output is /usr/lib/x86_64-linux-gnu/libpcre.so</div><div><br></div>regards<div>Vivek Goel</div><br>
<br><br><div class="gmail_quote">On Wed, Jun 6, 2012 at 10:52 PM, Andreas Pakulat <span dir="ltr">&lt;<a href="mailto:apaku@gmx.de" target="_blank">apaku@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br><br><div class="gmail_quote"><div><div class="h5">On Wed, Jun 6, 2012 at 5:40 PM, vivek goel <span dir="ltr">&lt;<a href="mailto:goelvivek2011@gmail.com" target="_blank">goelvivek2011@gmail.com</a>&gt;</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 &quot;${CMAKE_SOURCE_DIR}/lib/linux/gcc/${BIT}/lib&quot;)<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></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" target="_blank">http://cmake.org/cmake/help/v2.8.8/cmake.html#command:find_library</a></div>

<div><br></div><div>As you can see &#39;PATH&#39; 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><font color="#888888"><div>Vivek Goel</div>
<br><span class="HOEnZb"><font color="#888888">
</font></span></font></span><span class="HOEnZb"><font color="#888888"><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></font></span></blockquote></div><br>
</blockquote></div><br></div>