Line
Link Here
|
0 |
-- a/CMakeLists.txt |
0 |
++ b/CMakeLists.txt |
Lines 84-93
Link Here
|
84 |
) |
84 |
) |
85 |
|
85 |
|
86 |
if(NOT APPLE) |
86 |
if(NOT APPLE) |
87 |
find_package(X11) |
87 |
option(WITH_X11 "Build with X11 integration" ON) |
88 |
set_package_properties(X11 PROPERTIES TYPE OPTIONAL) |
88 |
if (WITH_X11) |
|
|
89 |
find_package(X11 REQUIRED) |
90 |
set(HAVE_X11 TRUE) |
91 |
set_package_properties(X11 PROPERTIES TYPE OPTIONAL) |
92 |
endif() |
93 |
else() |
94 |
set(WITH_X11 OFF) |
89 |
endif() |
95 |
endif() |
90 |
set(HAVE_X11 ${X11_FOUND}) |
|
|
91 |
|
96 |
|
92 |
# Check for function GETPWUID |
97 |
# Check for function GETPWUID |
93 |
check_symbol_exists(getpwuid "pwd.h" HAVE_GETPWUID) |
98 |
check_symbol_exists(getpwuid "pwd.h" HAVE_GETPWUID) |