NAMES and PATHS need to be capitalized...<div><br><br><div class="gmail_quote">On Sun, Sep 13, 2009 at 3:25 PM, Calder Coalson <span dir="ltr"><<a href="mailto:ccoal.mail@gmail.com">ccoal.mail@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Sorry to bother everyone, but I have a mildly inexplicable problem<br>
with the find_library function. I won't bother you with the entire<br>
code unless you ask for it, but here's a minimal example of the<br>
relevant details:<br>
set(OGRE_SDK_PATH "C:/OgreSDK" CACHE STRING "")<br>
set(DEP_LIB_PATH "${OGRE_SDK_PATH}/lib")<br>
find_library(OGRE_LIBRARY_REL names OgreMain paths ${DEP_LIB_PATH})<br>
message(${OGRE_LIBRARY_REL})<br>
<br>
This outputs OGRE_LIBRARY_REL-NOTFOUND despite the fact that<br>
OgreMain.lib is located in C:/OgreSDK/lib . Thanks in advance for<br>
catching the stupid mistake I'm making!<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></div>