Skip to content

Commit

Permalink
Fix OpenGL issue in Python virtual environment (#1766)
Browse files Browse the repository at this point in the history
See issue #1755
  • Loading branch information
howetuft authored Apr 11, 2024
1 parent 64b85a5 commit 091c35f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/MaterialXRenderGlsl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ elseif(UNIX)
message(FATAL_ERROR "Error in building MaterialXRenderGlsl: Xt was not found")
endif()

if(SKBUILD)
set(OpenGL_GL_PREFERENCE LEGACY)
endif()

find_package(OpenGL REQUIRED)
include_directories(${X11_INCLUDE_DIR})
endif()
Expand Down

0 comments on commit 091c35f

Please sign in to comment.