Compile Embree without GLUT

Alec Jacobson

September 08, 2014

weblog/

Trying to compile embree on a server, I was notified that I didn't have GLUT installed:

CMake Error at /home2/alecjaco/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
  Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR)

I shouldn't need this because I don't care about visualizing the results. To get around this requirement I simply comment out the following line in the top level CMakeLists.txt:

ADD_SUBDIRECTORY(examples)

becomes

#ADD_SUBDIRECTORY(examples)