File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.2 )
1+ cmake_minimum_required (VERSION 3.13 )
22
33project (occt-qopenglwidget-sample)
44
@@ -45,6 +45,9 @@ if (MSVC)
4545endif ()
4646
4747# Find OpenGL
48+ if (NOT WIN32 AND NOT APPLE )
49+ set (OpenGL_GL_PREFERENCE "GLVND" )
50+ endif ()
4851find_package (OpenGL REQUIRED )
4952
5053# Find Qt
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.2 )
1+ cmake_minimum_required (VERSION 3.13 )
22
33project (occt-qtquick-sample)
44
@@ -45,6 +45,9 @@ if (MSVC)
4545endif ()
4646
4747# Find OpenGL
48+ if (NOT WIN32 AND NOT APPLE )
49+ set (OpenGL_GL_PREFERENCE "GLVND" )
50+ endif ()
4851find_package (OpenGL REQUIRED )
4952
5053# Find Qt
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.2 )
1+ cmake_minimum_required (VERSION 3.13 )
22
33project (occt-qwidget-sample)
44
@@ -45,6 +45,9 @@ if (MSVC)
4545endif ()
4646
4747# Find OpenGL
48+ if (NOT WIN32 AND NOT APPLE )
49+ set (OpenGL_GL_PREFERENCE "GLVND" )
50+ endif ()
4851find_package (OpenGL REQUIRED )
4952
5053# Find Qt
You can’t perform that action at this time.
0 commit comments