Skip to content

Commit

Permalink
Address Nick's notes (would be a great show name)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgovil committed Nov 1, 2023
1 parent 4e59d0f commit fc94305
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmake/defaults/Packages.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,10 @@ if (PXR_BUILD_IMAGING)
if (POLICY CMP0072)
cmake_policy(SET CMP0072 OLD)
endif()
find_package(OpenGL REQUIRED)
if (APPLE)
set(OPENGL_gl_LIBRARY "-framework OpenGL")
else ()
find_package(OpenGL REQUIRED)
endif()
endif()
# --Metal
Expand Down
4 changes: 2 additions & 2 deletions pxr/imaging/garch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ if(APPLE)
set(GARCH_GLPLATFORMCONTEXT glPlatformContextDarwin)
set(GARCH_GLPLATFORMDEBUGWINDOW glPlatformDebugWindowDarwin)
set(GARCH_SOURCE_EXTENSION mm)
set(GARCH_PLATFORM_LIBRARIES "-framework AppKit")
elseif(X11_FOUND)
set(GARCH_GLPLATFORMCONTEXT glPlatformContextGLX)
set(GARCH_GLPLATFORMDEBUGWINDOW glPlatformDebugWindowGLX)
Expand All @@ -21,14 +22,13 @@ elseif(WIN32)
set(GARCH_SOURCE_EXTENSION cpp)
endif()


pxr_library(garch
LIBRARIES
arch
tf
${X11_LIBRARIES}
${OPENGL_gl_LIBRARY}
"-framework AppKit"
${GARCH_PLATFORM_LIBRARIES}

INCLUDE_DIRS
${Boost_INCLUDE_DIRS}
Expand Down

0 comments on commit fc94305

Please sign in to comment.