mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-27 00:51:55 +00:00
Merge pull request #125 from rkanavath/master
CMake: call find_package only if build_utils is enabled
This commit is contained in:
commit
db04f1d1ef
@ -44,8 +44,10 @@ else ()
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
find_package (OpenGL REQUIRED)
|
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})
|
set (GLEW_LIBRARIES ${OPENGL_LIBRARIES})
|
||||||
|
|
||||||
add_definitions (-DGLEW_NO_GLU)
|
add_definitions (-DGLEW_NO_GLU)
|
||||||
|
Loading…
Reference in New Issue
Block a user