From 6e18eebb256e8697bf715dfc4a93c29169cc6853 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Thu, 30 Jan 2020 21:14:51 +0100 Subject: [PATCH] don't link against X11 on Mac --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e998df4d..d9eeb0b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,7 @@ if(APPLE) add_link_options("-v") endif() -if(UNIX) +if(UNIX AND NOT APPLE) find_package(X11 REQUIRED) link_libraries(${X11_LIBRARIES}) include_directories(${X11_INCLUDE_DIR})