Salome HOME
StaticMeshPlugin compilation issue on DB11
[tools/sat_salome.git] / products / patches / GUI_GLdispatch.patch
1 diff --git a/src/SUITApp/CMakeLists.txt b/src/SUITApp/CMakeLists.txt
2 index 7668604..5f4e828 100755
3 --- a/src/SUITApp/CMakeLists.txt
4 +++ b/src/SUITApp/CMakeLists.txt
5 @@ -41,6 +41,11 @@ IF(SALOME_USE_PYCONSOLE)
6    LIST(APPEND _link_LIBRARIES ${PYTHON_LIBRARIES})
7  ENDIF()
8  
9 +FIND_LIBRARY(GLAPI_DISPATCH_LIBRARY libGLdispatch.so)
10 +IF(GLAPI_DISPATCH_LIBRARY)
11 +  LIST(APPEND _link_LIBRARIES GLdispatch)
12 +ENDIF()
13 +
14  # --- headers ---
15  
16  # header files / to be processed by moc
17 diff --git a/src/TOOLSGUI/CMakeLists.txt b/src/TOOLSGUI/CMakeLists.txt
18 index e60ddda..1339b2c 100755
19 --- a/src/TOOLSGUI/CMakeLists.txt
20 +++ b/src/TOOLSGUI/CMakeLists.txt
21 @@ -52,6 +52,11 @@ SET(_link_LIBRARIES
22    qtx suit
23  )
24  
25 +FIND_LIBRARY(GLAPI_DISPATCH_LIBRARY libGLdispatch.so)
26 +IF(GLAPI_DISPATCH_LIBRARY)
27 +  LIST(APPEND _link_LIBRARIES GLdispatch)
28 +ENDIF()
29 +
30  # --- headers ---
31  
32  # header files / to be processed by moc