Fix compilation with enabled EVENT_INPUT
Need to move the definition to the toplevel cmake file, since sources are no longer compiled on directory level (individual libs per dir).
This commit is contained in:
parent
0f3fecf0c6
commit
293d6b3565
2 changed files with 2 additions and 2 deletions
|
@ -132,6 +132,7 @@ if(EVENT_INPUT)
|
||||||
message(WARNING "UDev not found, event input is disabled!")
|
message(WARNING "UDev not found, event input is disabled!")
|
||||||
set(EVENT_INPUT 0)
|
set(EVENT_INPUT 0)
|
||||||
else()
|
else()
|
||||||
|
add_definitions(-DWITH_EVENTINPUT)
|
||||||
set(EVENT_INPUT_LIBRARIES ${UDEV_LIBRARIES})
|
set(EVENT_INPUT_LIBRARIES ${UDEV_LIBRARIES})
|
||||||
message(STATUS "event-based input enabled. Using ${UDEV_LIBRARIES}")
|
message(STATUS "event-based input enabled. Using ${UDEV_LIBRARIES}")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -37,7 +37,6 @@ if(EVENT_INPUT)
|
||||||
list(APPEND SOURCES ${EVENT_INPUT_SOURCES})
|
list(APPEND SOURCES ${EVENT_INPUT_SOURCES})
|
||||||
list(APPEND SOURCES ${EVENT_INPUT_HEADERS})
|
list(APPEND SOURCES ${EVENT_INPUT_HEADERS})
|
||||||
include_directories(${UDEV_INCLUDE_DIR})
|
include_directories(${UDEV_INCLUDE_DIR})
|
||||||
add_definitions(-DWITH_EVENTINPUT)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(FGJS_SOURCES
|
set(FGJS_SOURCES
|
||||||
|
|
Loading…
Reference in a new issue