From 051b162add564dcc6f86be781df8d951a96a8015 Mon Sep 17 00:00:00 2001 From: archshift Date: Tue, 2 Sep 2014 23:32:15 -0700 Subject: Removed the need for X11 on OS X It only causes issues when someone (who doesn't need it) doesn't have it. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e1614cd4..83b0863f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() -- cgit v1.2.3