don't link against X11 on Mac

This commit is contained in:
WarmUpTill
2020-01-30 21:14:51 +01:00
committed by GitHub
parent b7058f97a9
commit 6e18eebb25

View File

@@ -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})