Merge non-GTK build fix from 'pre-0.78'.

This commit is contained in:
Simon Tatham 2022-09-19 20:26:57 +01:00
Родитель 18e3bcf58c 9fcfd679b4
Коммит bbdf504631
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -96,6 +96,10 @@ if(GTK_FOUND)
endif()
endfunction()
check_x11()
else()
# If we didn't even have GTK, behave as if X11 is not available.
# (There's nothing useful we could do with it even if there was.)
set(NOT_X_WINDOWS ON)
endif()
include_directories(${CMAKE_SOURCE_DIR}/charset ${GTK_INCLUDE_DIRS} ${X11_INCLUDE_DIR})