Skip to content

Commit

Permalink
Fix build on MacOSX.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfonseca committed Apr 20, 2011
1 parent f01b7f5 commit 8248a0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,6 +4,7 @@
*.bmp
*.bz2
*.dll
*.dylib
*.exe
*.exp
*.ilk
Expand Down
6 changes: 6 additions & 0 deletions CMakeLists.txt
Expand Up @@ -25,6 +25,12 @@ if (NOT WIN32)
find_package (ZLIB)
find_package (PNG)
find_package (X11 REQUIRED)

# We use GLX on MacOSX, which is in a separate library
if (APPLE)
find_library (X11_GL_LIB GL ${X11_LIB_SEARCH_PATH})
set(X11_LIBRARIES ${X11_LIBRARIES} ${X11_GL_LIB})
endif (APPLE)
else (NOT WIN32)
find_package (DirectX)
endif (NOT WIN32)
Expand Down

0 comments on commit 8248a0f

Please sign in to comment.