projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4418d14
)
CMake produces an error if XInput.h is not found
author
Rcmaniac25
<rcmaniac25@hotmail.com>
Fri, 30 Jun 2017 23:23:05 +0000
(23:23 +0000)
committer
Diederick Niehorster
<dcnieho@gmail.com>
Fri, 30 Jun 2017 23:23:05 +0000
(23:23 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1826
7f0cb862
-5218-0410-a997-
914c9d46530a
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
58b1b46
..
b4db0fd
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-326,6
+326,8
@@
IF(UNIX AND NOT(ANDROID OR BLACKBERRY OR FREEGLUT_WAYLAND))
# Needed for multi-touch:
CHECK_INCLUDE_FILES("${X11_Xinput_INCLUDE_PATH}/X11/extensions/XInput2.h" HAVE_X11_EXTENSIONS_XINPUT2_H)
LIST(APPEND LIBS ${X11_Xinput_LIB})
+ ELSE()
+ MESSAGE(FATAL_ERROR, "Missing X11's XInput.h (X11/extensions/XInput.h)")
ENDIF()
ENDIF()
IF(ANDROID)