summaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-02-01 04:16:28 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-02-01 04:16:28 (GMT)
commit1f39090cc0f47893977f8abc33b5f1933a3c275e (patch)
tree308da130cf4ec27e5e86e3844c14bf45c06f6537 /tests/CMakeLists.txt
parent684e023e849f5ab971d3901d1932ce21ddc3f8e2 (diff)
fix GLU issues caued by mesa split from glu. clarify test error msg
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index d2daf43..fcf7d08 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -179,6 +179,11 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_INCLUDE_DIRECTORIES_BEFORE ON)
find_package(OpenGL REQUIRED)
+if ( "${OPENGL_glu_LIBRARY}" MATCHES "NOTFOUND" )
+ # GLU and Mesa split in late 2012 so some systems dont have GLU
+ find_library(OPENGL_glu_LIBRARY GLU HINTS "$ENV{OPENSCAD_LIBRARIES}/lib" REQUIRED)
+ set( OPENGL_LIBRARY ${OPENGL_glu_LIBRARY} ${OPENGL_LIBRARY} )
+endif()
if (MINGW_CROSS_ENV_DIR)
mingw_cross_env_find_qt()
contact: Jan Huwald // Impressum