Actually, try this: (note the &quot;NAMES&quot;)<br>
find_library(glut NAMES &quot;glut32&quot; PATHS &quot;Z:/Opt/lib&quot; NO_DEFAULT_PATH)<br>
<br>
Commands can be upper or lower case, but the arguments to the commands
that are &quot;special&quot; words must typically still be upper case, exactly as
documented with --help-command. So NAMES should be all upper case...<br>
<br>
<br>
HTH,<br>
David<br>
<br><br>
<br><div><span class="gmail_quote">On 2/26/08, <b class="gmail_sendername">Mike Jackson</b> &lt;<a href="mailto:imikejackson@gmail.com">imikejackson@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
find_library(glut name &quot;glut32&quot; PATHS &quot;Z:/Opt/lib&quot; NO_DEFAULT_PATH)<br> <br> --<br> <br>Mike Jackson&nbsp;&nbsp; Senior Research Engineer<br> Innovative Management &amp; Technology Services<br> <br><br> <br> On Feb 26, 2008, at 1:12 PM, Harsha Sri-Narayana wrote:<br>
 <br> &gt; I&#39;m having a bit of trouble linking to a library.&nbsp;&nbsp;I have a library<br> &gt; in a non standard place so I don&#39;t think I can use the<br> &gt; findglut.cmake helper script.&nbsp;&nbsp;I have this so far:<br> &gt;<br>
 &gt; .<br> &gt; .<br> &gt; find_library(glut name &quot;glut32.lib&quot; PATHS &quot;Z:/Opt/lib&quot;<br> &gt; NO_DEFAULT_PATH)<br> &gt; .<br> &gt; .<br> &gt; .<br> &gt; target_link_libraries(mytarget ${glut})<br> &gt;<br>
 &gt;<br> &gt; I get:<br> &gt; &quot;CMake Error: This project requires some variables to be set and<br> &gt; cmake can not find them.&nbsp;&nbsp;Please set glut.&quot;<br> &gt;<br> &gt; Any help would be greatly appreciated,<br> &gt; -Harsha<br>
 &gt; _______________________________________________<br> &gt; CMake mailing list<br> &gt; <a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br> &gt; <a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br>
 <br> _______________________________________________<br> CMake mailing list<br> <a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br> <a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br>
 </blockquote></div><br>