Merge pull request #57 from rcmaniac25/bugfix/xinput_no_error_on_not_found
CMake error on X11 builds if XInput.h is not found
This commit is contained in:
commit
75cd7a2fb4
@ -324,6 +324,8 @@ IF(UNIX AND NOT(ANDROID OR BLACKBERRY OR FREEGLUT_WAYLAND))
|
|||||||
# Needed for multi-touch:
|
# Needed for multi-touch:
|
||||||
CHECK_INCLUDE_FILES("${X11_Xinput_INCLUDE_PATH}/X11/extensions/XInput2.h" HAVE_X11_EXTENSIONS_XINPUT2_H)
|
CHECK_INCLUDE_FILES("${X11_Xinput_INCLUDE_PATH}/X11/extensions/XInput2.h" HAVE_X11_EXTENSIONS_XINPUT2_H)
|
||||||
LIST(APPEND LIBS ${X11_Xinput_LIB})
|
LIST(APPEND LIBS ${X11_Xinput_LIB})
|
||||||
|
ELSE()
|
||||||
|
MESSAGE(FATAL_ERROR "Missing X11's XInput.h (X11/extensions/XInput.h)")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
IF(ANDROID)
|
IF(ANDROID)
|
||||||
|
Reference in New Issue
Block a user