[CMake] Problem using find_library()

David Cole david.cole at kitware.com
Sun Sep 13 16:48:57 EDT 2009


NAMES and PATHS need to be capitalized...

On Sun, Sep 13, 2009 at 3:25 PM, Calder Coalson <ccoal.mail at gmail.com>wrote:

> Sorry to bother everyone, but I have a mildly inexplicable problem
> with the find_library function.  I won't bother you with the entire
> code unless you ask for it, but here's a minimal example of the
> relevant details:
> set(OGRE_SDK_PATH "C:/OgreSDK" CACHE STRING "")
> set(DEP_LIB_PATH "${OGRE_SDK_PATH}/lib")
> find_library(OGRE_LIBRARY_REL names OgreMain paths ${DEP_LIB_PATH})
> message(${OGRE_LIBRARY_REL})
>
> This outputs OGRE_LIBRARY_REL-NOTFOUND despite the fact that
> OgreMain.lib is located in C:/OgreSDK/lib .  Thanks in advance for
> catching the stupid mistake I'm making!
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090913/0ba4ed64/attachment-0001.htm>


More information about the CMake mailing list