diff options
author | Marius Kintel <marius@kintel.net> | 2013-02-02 22:25:13 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-02-02 22:25:13 (GMT) |
commit | e5448f5e69f6d59256ba1816acf2647e808e10db (patch) | |
tree | 565c87e051833daa1c0eed7ffe45533fcf05c2fb /tests/CMakeLists.txt | |
parent | eb30d42b5dd3ed5bb37336ed46a59eabaca81e06 (diff) | |
parent | 18e3a7d9ad8e052d626ac250a9c9d5f36f29a54d (diff) |
Merge pull request #270 from openscad/misc_updates
Big Endian binary STL fix + misc updates
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 5 |
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() |