cmake: fix Linux detection

pull/2/head
xiphon 4 years ago
parent 43f378b7d2
commit b56c0cd8a2

@ -176,7 +176,7 @@ find_package(Boost 1.62 REQUIRED COMPONENTS
program_options
locale)
if(LINUX)
if(UNIX AND NOT APPLE)
find_package(X11 REQUIRED)
message(STATUS "X11_FOUND = ${X11_FOUND}")
message(STATUS "X11_INCLUDE_DIR = ${X11_INCLUDE_DIR}")