From: Christian Schmitt Date: Thu, 25 Aug 2011 12:03:52 +0000 (+0200) Subject: Don't make CMake install HLA libs and headers in every case. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1227bd48989adbd5d0b18f93da66323bb1ac26d4;p=simgear.git 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. --- 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/)