From 1227bd48989adbd5d0b18f93da66323bb1ac26d4 Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Thu, 25 Aug 2011 14:03:52 +0200 Subject: [PATCH] Don't make CMake install HLA libs and headers in every case. Only install them when RTI is enabled. The autotools build system handles this equally. --- simgear/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/simgear/CMakeLists.txt b/simgear/CMakeLists.txt index 6080b59e..e3ff31ef 100644 --- a/simgear/CMakeLists.txt +++ b/simgear/CMakeLists.txt @@ -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/) -- 2.39.5