I'm having a bit of trouble linking to a library. I have a library in a non standard place so I don't think I can use the findglut.cmake helper script. I have this so far:

.
.
find_library(glut name "glut32.lib" PATHS "Z:/Opt/lib" NO_DEFAULT_PATH)
.
.
.
target_link_libraries(mytarget ${glut})


I get:
"CMake Error: This project requires some variables to be set and cmake can not find them. Please set glut."

Any help would be greatly appreciated,
-Harsha
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to