mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 12:40:25 +08:00
96edc8c4a3
* [freeglut] updated to 3.2.1
* [freeglut] address review comments
* [freeglut] add glut forwarding header
* [freeglut] revert incorrect wrapper location
* [freeglut] enable FREEGLUT_REPLACE_GLUT
* [freeglut] static lib renaming is not needed anymore
* [freeglut] revert FREEGLUT_REPLACE_GLUT setting, always use glut.h
* Revert "[freeglut] static lib renaming is not needed anymore"
This reverts commit 550018c1b8
.
22 lines
841 B
Diff
22 lines
841 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 6f403af..ce6f9f2 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -258,6 +258,16 @@ ENDIF()
|
|
IF(FREEGLUT_GLES)
|
|
LIST(APPEND PUBLIC_DEFINITIONS -DFREEGLUT_GLES)
|
|
LIST(APPEND LIBS GLESv2 GLESv1_CM EGL)
|
|
+ELSEIF(APPLE)
|
|
+ # on OSX FindOpenGL uses framework version of OpenGL, but we need X11 version
|
|
+ FIND_PATH(GLX_INCLUDE_DIR GL/glx.h
|
|
+ PATHS /opt/X11/include /usr/X11/include /usr/X11R6/include)
|
|
+ FIND_LIBRARY(OPENGL_gl_LIBRARY GL
|
|
+ PATHS /opt/X11/lib /usr/X11/lib /usr/X11R6/lib)
|
|
+ FIND_LIBRARY(OPENGL_glu_LIBRARY GLU
|
|
+ PATHS /opt/X11/lib /usr/X11/lib /usr/X11R6/lib)
|
|
+ LIST(APPEND LIBS ${OPENGL_gl_LIBRARY})
|
|
+ INCLUDE_DIRECTORIES(${GLX_INCLUDE_DIR})
|
|
ELSE()
|
|
FIND_PACKAGE(OpenGL REQUIRED)
|
|
LIST(APPEND LIBS ${OPENGL_gl_LIBRARY})
|