cmake: fix Linux detection

This commit is contained in:
xiphon 2020-01-17 10:38:14 +00:00
parent 43f378b7d2
commit b56c0cd8a2

View file

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