Hi,<br><br>I'm creating a Find module for Intel's TBB library and I can't get find_library to work properly. It's just not finding the library. The path to the library in question is <b><tbb_rootdirectory>/ai32/vc9/lib/tbb.lib</b> for the MSVC9 32-bit compiler. Am I doing something wrong? I've set the root path to the TBB library in CMAKE_PREFIX_PATH outside of the find module before my external call to find_package(). I wonder if my PATH_SUFFIXES arguments are appropriate.<br>
<br><span style="font-family: courier new,monospace; color: rgb(0, 102, 0);">include( LibFindMacros )</span><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);"><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);">
<span style="font-family: courier new,monospace; color: rgb(0, 102, 0);">find_file( TBB_INCLUDE_DIR tbb/atomic.h )</span><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);"><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);">
<span style="font-family: courier new,monospace; color: rgb(0, 102, 0);">if( CMAKE_GENERATOR STREQUAL "Visual Studio 9 2008" )</span><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);"><span style="font-family: courier new,monospace; color: rgb(0, 102, 0);"> set( TBB_PATH_SUFFIX ai32/vc9 )</span><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);">
<span style="font-family: courier new,monospace; color: rgb(0, 102, 0);">elseif( CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" )</span><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);"><span style="font-family: courier new,monospace; color: rgb(0, 102, 0);"> set( TBB_PATH_SUFFIX ai32/vc8 )</span><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);">
<span style="font-family: courier new,monospace; color: rgb(0, 102, 0);">elseif( CMAKE_GENERATOR STREQUAL "Visual Studio 7 .NET 2003" )</span><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);">
<span style="font-family: courier new,monospace; color: rgb(0, 102, 0);"> set( TBB_PATH_SUFFIX ai32/vc7 )</span><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);"><span style="font-family: courier new,monospace; color: rgb(0, 102, 0);">elseif( CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005 Win64" )</span><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);">
<span style="font-family: courier new,monospace; color: rgb(0, 102, 0);"> set( TBB_PATH_SUFFIX em64t/vc8 )</span><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);"><span style="font-family: courier new,monospace; color: rgb(0, 102, 0);">elseif( CMAKE_GENERATOR STREQUAL "Visual Studio 9 2008 Win64" )</span><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);">
<span style="font-family: courier new,monospace; color: rgb(0, 102, 0);"> set( TBB_PATH_SUFFIX em64t/vc9 )</span><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);"><span style="font-family: courier new,monospace; color: rgb(0, 102, 0);">endif()</span><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);">
<br style="font-family: courier new,monospace; color: rgb(0, 102, 0);"><span style="font-family: courier new,monospace; color: rgb(0, 102, 0);">find_library( TBB_LIBRARY tbb PATH_SUFFIXES ${TBB_PATH_SUFFIX} )</span><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);">
<br style="font-family: courier new,monospace; color: rgb(0, 102, 0);"><span style="font-family: courier new,monospace; color: rgb(0, 102, 0);">set( TBB_PROCESS_INCLUDES TBB_INCLUDE_DIR )</span><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);">
<span style="font-family: courier new,monospace; color: rgb(0, 102, 0);">set( TBB_PROCESS_LIBS TBB_LIBRARY )</span><br style="font-family: courier new,monospace; color: rgb(0, 102, 0);"><span style="font-family: courier new,monospace; color: rgb(0, 102, 0);">libfind_process( TBB )</span><br>