Skip to content

Commit

Permalink
Fix OpenGL issue in Python virtual environment (AcademySoftwareFounda…
Browse files Browse the repository at this point in the history
  • Loading branch information
howetuft authored and ehlenl committed Apr 12, 2024
1 parent df923ba commit e3451f9
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 e3451f9

Please sign in to comment.