]> git.mxchange.org Git - flightgear.git/commitdiff
Fix compilation with enabled EVENT_INPUT
authorThorstenB <brehmt@gmail.com>
Sat, 22 Sep 2012 12:20:49 +0000 (14:20 +0200)
committerThorstenB <brehmt@gmail.com>
Sat, 22 Sep 2012 12:23:15 +0000 (14:23 +0200)
Need to move the definition to the toplevel cmake file, since sources
are no longer compiled on directory level (individual libs per dir).

CMakeLists.txt
src/Input/CMakeLists.txt

index 47519337cc96ceebbd2c7b3c95615f103d4c98c5..3fd2b3e2afd609dbda530454b57bf97c6dc4adac 100644 (file)
@@ -132,6 +132,7 @@ if(EVENT_INPUT)
             message(WARNING "UDev not found, event input is disabled!")
             set(EVENT_INPUT 0)
         else()
+            add_definitions(-DWITH_EVENTINPUT)
             set(EVENT_INPUT_LIBRARIES ${UDEV_LIBRARIES})
             message(STATUS "event-based input enabled. Using ${UDEV_LIBRARIES}")
         endif()
index a0031c2cb13a585b376a395ec9d6db3a82f7b73a..009929dce3caa3e0e3f45a57326878ae933d4bce 100644 (file)
@@ -19,7 +19,7 @@ set(SOURCES
        FGJoystickInput.cxx
        FGKeyboardInput.cxx
        FGMouseInput.cxx
-       input.cxx       
+       input.cxx
        )
 
 set(HEADERS
@@ -37,7 +37,6 @@ if(EVENT_INPUT)
        list(APPEND SOURCES ${EVENT_INPUT_SOURCES})
        list(APPEND SOURCES ${EVENT_INPUT_HEADERS})
        include_directories(${UDEV_INCLUDE_DIR})
-       add_definitions(-DWITH_EVENTINPUT)
 endif()
 
 set(FGJS_SOURCES