Merge pull request #89 from archshift/X11-OSX

Removed the need for X11 on OS X
This commit is contained in:
bunnei 2014-09-03 10:15:46 -04:00
commit fda291816b
1 changed files with 4 additions and 1 deletions

View File

@ -65,7 +65,10 @@ if (ENABLE_GLFW)
set(GLFW_LIBRARIES glfw3)
else()
find_package(X11 REQUIRED)
if (NOT APPLE)
find_package(X11 REQUIRED)
endif()
find_package(PkgConfig REQUIRED)
pkg_search_module(GLFW REQUIRED glfw3)
endif()