Update CMakeLists.txt

X11 are part of OPENGL_LIBRARIES
This commit is contained in:
xantares 2015-02-04 21:45:12 +01:00
parent e6cd59d9b5
commit b1822129a0

View File

@ -28,11 +28,6 @@ endif ()
find_package (OpenGL REQUIRED) find_package (OpenGL REQUIRED)
set (GLEW_LIBRARIES ${OPENGL_LIBRARIES}) set (GLEW_LIBRARIES ${OPENGL_LIBRARIES})
if (UNIX)
find_package (X11 REQUIRED)
list (APPEND GLEW_LIBRARIES ${X11_LIBRARIES})
endif ()
add_definitions (-DGLEW_BUILD -DGLEW_NO_GLU) add_definitions (-DGLEW_BUILD -DGLEW_NO_GLU)
include_directories (${PROJECT_SOURCE_DIR}/include) include_directories (${PROJECT_SOURCE_DIR}/include)