Salome HOME
Update list of known failed tests from testbase
[tools/configuration.git] / config / patches / cea / gl2ps-1.4.0-GLUT.patch
1 --- gl2ps-1.3.9p1_ori/CMakeLists.txt    2015-10-19 00:01:33.000000000 +0200
2 +++ gl2ps-1.3.9p1_new/CMakeLists.txt    2017-08-03 15:26:40.967608544 +0200
3 @@ -82,11 +82,14 @@ if(OPENGL_FOUND)
4    list(APPEND EXTERNAL_LIBRARIES ${OPENGL_LIBRARIES})
5  endif(OPENGL_FOUND)
6  
7 -find_package(GLUT)
8 -if(GLUT_FOUND)
9 -  list(APPEND EXTERNAL_INCLUDES ${GLUT_INCLUDE_DIR})
10 -  list(APPEND EXTERNAL_LIBRARIES ${GLUT_LIBRARIES})
11 -endif(GLUT_FOUND)
12 +# Add ENABLE_GLUT option
13 +if(ENABLE_GLUT)
14 +  find_package(GLUT)
15 +  if(GLUT_FOUND)
16 +    list(APPEND EXTERNAL_INCLUDES ${GLUT_INCLUDE_DIR})
17 +    list(APPEND EXTERNAL_LIBRARIES ${GLUT_LIBRARIES})
18 +  endif(GLUT_FOUND)
19 +endif(ENABLE_GLUT)
20  
21  if(ENABLE_ZLIB)
22    find_package(ZLIB)