Hi,<br><br>I&#39;m creating a Find module for Intel&#39;s TBB library and I can&#39;t get find_library to work properly. It&#39;s just not finding the library. The path to the library in question is <b>&lt;tbb_rootdirectory&gt;/ai32/vc9/lib/tbb.lib</b> for the MSVC9 32-bit compiler. Am I doing something wrong? I&#39;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 &quot;Visual Studio 9 2008&quot; )</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);">&nbsp;&nbsp;&nbsp; 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 &quot;Visual Studio 8 2005&quot; )</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);">&nbsp;&nbsp;&nbsp; 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 &quot;Visual Studio 7 .NET 2003&quot; )</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);">&nbsp;&nbsp;&nbsp; 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 &quot;Visual Studio 8 2005 Win64&quot; )</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);">&nbsp;&nbsp;&nbsp; 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 &quot;Visual Studio 9 2008 Win64&quot; )</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);">&nbsp;&nbsp;&nbsp; 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>