From 052382af89487a8db6703b3a97e3714808f1b55f Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Sun, 16 Sep 2012 21:13:26 +0200 Subject: [PATCH] cmake: Make rti/hla compile again. --- simgear/CMakeLists.txt | 9 +++++++-- simgear/hla/CMakeLists.txt | 1 - 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/simgear/CMakeLists.txt b/simgear/CMakeLists.txt index 872be32a..62f4a405 100644 --- a/simgear/CMakeLists.txt +++ b/simgear/CMakeLists.txt @@ -100,5 +100,10 @@ else() endif(NOT SIMGEAR_HEADLESS) endif(SIMGEAR_SHARED) - - +if(ENABLE_RTI) + # Ugly first aid to make hla compile agian + set_property(SOURCE hla/RTI13InteractionClass.cxx hla/RTI13ObjectClass.cxx + hla/RTI13ObjectInstance.cxx hla/RTI13Federate.cxx + hla/RTI13FederateFactory.cxx + APPEND PROPERTY COMPILE_FLAGS "-I${RTI_INCLUDE_DIR}") +endif(ENABLE_RTI) diff --git a/simgear/hla/CMakeLists.txt b/simgear/hla/CMakeLists.txt index 00b96295..5bc78c9d 100644 --- a/simgear/hla/CMakeLists.txt +++ b/simgear/hla/CMakeLists.txt @@ -60,7 +60,6 @@ if(RTI_FOUND) RTI13FederateFactory.cxx ) simgear_component(rti13 hla "${RTI13_SOURCES}" "") - set_property(TARGET sgrti13 APPEND PROPERTY COMPILE_FLAGS "-I${RTI_INCLUDE_DIR}") endif() set(RTI_SOURCES -- 2.39.5