From: Mathias Froehlich Date: Sun, 16 Sep 2012 19:13:26 +0000 (+0200) Subject: cmake: Make rti/hla compile again. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=052382af89487a8db6703b3a97e3714808f1b55f;p=simgear.git cmake: Make rti/hla compile again. --- 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