]> git.mxchange.org Git - simgear.git/commitdiff
Don't make CMake install HLA libs and headers in every case.
authorChristian Schmitt <chris@ilovelinux.de>
Thu, 25 Aug 2011 12:03:52 +0000 (14:03 +0200)
committerChristian Schmitt <chris@ilovelinux.de>
Thu, 25 Aug 2011 12:03:52 +0000 (14:03 +0200)
Only install them when RTI is enabled. The autotools build system
handles this equally.

simgear/CMakeLists.txt

index 6080b59e236f6943713dd72bd0a6522983b09dd4..e3ff31ef63a21c168794974da76717b035855440 100644 (file)
@@ -5,7 +5,6 @@ foreach( mylibfolder
         bucket
         debug
         ephemeris
-        hla
         io
         magvar
         math
@@ -24,14 +23,18 @@ foreach( mylibfolder
 
 endforeach( mylibfolder )
 
-if (NOT SIMGEAR_HEADLESS)
+if(NOT SIMGEAR_HEADLESS)
     add_subdirectory(environment)
     add_subdirectory(screen)
     add_subdirectory(scene)
     add_subdirectory(sound)
-endif()
+endif(NOT SIMGEAR_HEADLESS)
 
 
+if(ENABLE_RTI)
+    add_subdirectory(hla)
+endif(ENABLE_RTI)
+
 
 set(HEADERS compiler.h constants.h sg_inlines.h ${PROJECT_BINARY_DIR}/simgear/version.h)
 install (FILES ${HEADERS}  DESTINATION include/simgear/)