Actually, try this: (note the "NAMES")<br>
find_library(glut NAMES "glut32" PATHS "Z:/Opt/lib" NO_DEFAULT_PATH)<br>
<br>
Commands can be upper or lower case, but the arguments to the commands
that are "special" 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> <<a href="mailto:imikejackson@gmail.com">imikejackson@gmail.com</a>> 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 "glut32" PATHS "Z:/Opt/lib" NO_DEFAULT_PATH)<br> <br> --<br> <br>Mike Jackson Senior Research Engineer<br> Innovative Management & Technology Services<br> <br><br> <br> On Feb 26, 2008, at 1:12 PM, Harsha Sri-Narayana wrote:<br>
<br> > I'm having a bit of trouble linking to a library. I have a library<br> > in a non standard place so I don't think I can use the<br> > findglut.cmake helper script. I have this so far:<br> ><br>
> .<br> > .<br> > find_library(glut name "glut32.lib" PATHS "Z:/Opt/lib"<br> > NO_DEFAULT_PATH)<br> > .<br> > .<br> > .<br> > target_link_libraries(mytarget ${glut})<br> ><br>
><br> > I get:<br> > "CMake Error: This project requires some variables to be set and<br> > cmake can not find them. Please set glut."<br> ><br> > Any help would be greatly appreciated,<br> > -Harsha<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>
<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>