]> git.mxchange.org Git - simgear.git/commitdiff
cmake: Make rti/hla compile again.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 16 Sep 2012 19:13:26 +0000 (21:13 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 16 Sep 2012 19:13:56 +0000 (21:13 +0200)
simgear/CMakeLists.txt
simgear/hla/CMakeLists.txt

index 872be32a7cd94401fbce6b7d129abd021e356094..62f4a4052a0a4e385d56c22794e256e2ae955ede 100644 (file)
@@ -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)
index 00b9629568990cb4c5d4d03b4eac44bc6a6c446c..5bc78c9d41d6a2dd924aa7da2c79e209bd724f7e 100644 (file)
@@ -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