Do not compile hello_world without GLEW

The GLEW library is optional, but without it you cannot do OpenGL
interop. The hello_world example uses OpenGL interop, but did not check
that GLEW was available. It tried to use GLEW and an error occured.
This commit is contained in:
Kenneth Moreland 2016-06-16 11:15:23 -06:00
parent 0581a83aa2
commit 5461d27948

2
examples/hello_world/CMakeLists.txt Normal file → Executable file

@ -20,7 +20,7 @@
##
##=============================================================================
if(OPENGL_FOUND AND GLUT_FOUND)
if(VTKm_ENABLE_OPENGL_INTEROP AND GLUT_FOUND)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_executable(HelloWorld_SERIAL HelloWorld.cxx LoadShaders.h)
set_source_files_properties(LoadShaders.h PROPERTIES HEADER_FILE_ONLY TRUE)