Commit c690766f authored by Rashad Kanavath's avatar Rashad Kanavath

CMake: call find_package only if build_utils is enabled

parent a42be263
......@@ -44,8 +44,10 @@ else ()
endif ()
find_package (OpenGL REQUIRED)
find_package (X11)
#X11 is only required when builing utils/
if(BUILD_UTILS)
find_package (X11)
endif()
set (GLEW_LIBRARIES ${OPENGL_LIBRARIES})
add_definitions (-DGLEW_NO_GLU)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment