From: James Turner Date: Sat, 30 Jan 2016 14:29:12 +0000 (+0000) Subject: Fix headless build for CMake export X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ccb5d05eb4521a0d7b258d7b67ef3e917a3f49d6;p=simgear.git Fix headless build for CMake export --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7609844a..07815047 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -429,7 +429,9 @@ add_subdirectory(simgear) #----------------------------------------------------------------------------- generate_export_header(SimGearCore) -generate_export_header(SimGearScene) +if(NOT SIMGEAR_HEADLESS) + generate_export_header(SimGearScene) +endif() include(CMakePackageConfigHelpers)