Skip to content

Commit

Permalink
Use framework linkage for OpenGL on macOS (AcademySoftwareFoundation#…
Browse files Browse the repository at this point in the history
…1752)

Backporting AcademySoftwareFoundation#1741 to Main for 1.38.10
  • Loading branch information
dgovil authored Mar 26, 2024
1 parent afd31ca commit 84154c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/MaterialXRenderGlsl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ if(WIN32)
elseif(APPLE)
target_link_libraries(
${MATERIALX_MODULE_NAME}
OpenGL::GL
"-framework OpenGL"
"-framework Foundation"
"-framework Cocoa"
"-framework Metal")
Expand Down
2 changes: 1 addition & 1 deletion source/MaterialXRenderMsl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ elseif(APPLE)
target_link_libraries(
${MATERIALX_MODULE_NAME}
"-framework Cocoa"
OpenGL::GL)
"-framework OpenGL")
endif()
target_link_libraries(
${MATERIALX_MODULE_NAME}
Expand Down

0 comments on commit 84154c1

Please sign in to comment.