[CMake] Having difficulty with find_library()

Philip Lowman philip at yhbt.com
Thu Jan 15 03:05:15 EST 2009


On Thu, Jan 15, 2009 at 1:29 AM, Robert Dailey <rcdailey at gmail.com> wrote:

> On Wed, Jan 14, 2009 at 11:23 PM, Michael Jackson <
> mike.jackson at bluequartz.net> wrote:
>
>> I would try the following just to make sure it will find the library:
>>
>> find_library(TBB_LIBRARY
>>            NAMES tbb
>>            PATHS <tbb_rootdirectory>/ai32/vc9/lib )
>>
>> Substitute the proper full path for <tbb_rootdirectory> in the path above.
>>
>> Run CMake and see if the TBB_LIBRARY gets found. If it does get found by
>> CMake then start breaking the path into parts based on which compiler is
>> being used.
>
>
> Interesting. It fails when I do this:
>
> find_library( TBB_LIBRARY NAMES tbb PATHS
> C:/IT/work/planb/third_party/tbb/21_20080605oss/ai32/vc9/lib )
>

Double check your file path?
Double check your file permissions?
Try it in a separate CMakeLists.txt?

-- 
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090115/f6e35d75/attachment.htm>


More information about the CMake mailing list