Lines 294-312
if (JAS_ENABLE_OPENGL AND OPENGL_FOUND)
Link Here
|
294 |
# On some systems (e.g., Fedora 21), there is a bug in the cmake code |
294 |
# On some systems (e.g., Fedora 21), there is a bug in the cmake code |
295 |
# that detects GLUT libraries. The following ugliness is a workaround for |
295 |
# that detects GLUT libraries. The following ugliness is a workaround for |
296 |
# this problem. |
296 |
# this problem. |
297 |
if (NOT GLUT_Xmu_LIBRARY OR NOT GLUT_Xmi_LIBRARY) |
297 |
set(GLUT_LIBRARIES "${GLUT_glut_LIBRARY}") |
298 |
if (NOT GLUT_Xmu_LIBRARY) |
|
|
299 |
set(GLUT_Xmu_LIBRARY "") |
300 |
message(WARNING "Clearing bogus value for GLUT_Xmu_LIBRARY.") |
301 |
message(WARNING "Your version of CMake may be buggy.") |
302 |
endif() |
303 |
if (NOT GLUT_Xmi_LIBRARY) |
304 |
set(GLUT_Xmi_LIBRARY "") |
305 |
message(WARNING "Clearing bogus value for GLUT_Xmi_LIBRARY.") |
306 |
message(WARNING "Your version of CMake may be buggy.") |
307 |
endif() |
308 |
set(GLUT_LIBRARIES "${GLUT_glut_LIBRARY}") |
309 |
endif() |
310 |
else() |
298 |
else() |
311 |
set(JAS_HAVE_OPENGL 0) |
299 |
set(JAS_HAVE_OPENGL 0) |
312 |
set(OPENGL_INCLUDE_DIR "") |
300 |
set(OPENGL_INCLUDE_DIR "") |