| --- a/CMakeLists.txt 2018-07-22 11:13:30.258458500 +0300 |
| +++ b/CMakeLists.txt 2018-07-22 11:14:34.553135900 +0300 |
| @@ -145,7 +145,9 @@ |
| set(PACKAGE_ADDITIONAL_REQUIREMENTS "QtCore, QtGui, QtOpenGL") |
| endif() |
| |
| -find_package(X11) |
| +if(NOT WIN32) |
| + find_package(X11) |
| +endif() |
| |
| # ########################################################################## |
| # Setup build environment |
| @@ -360,7 +360,9 @@ |
| endif() |
| set(USE_EXCEPTIONS ON) |
| set(HAVE_JOYSTICK_LINUX OFF) |
| +if(NOT WIN32) |
| check_include_files(X11/Xlib.h HAVE_X11_AVAILABLE) |
| +endif() |
| if(HAVE_X11_AVAILABLE) |
| set(X_DISPLAY_MISSING 0) |
| check_include_files(X11/extensions/SGIMisc.h HAVE_X11_EXTENSIONS_SGIMISC_H) |