From ccb5d05eb4521a0d7b258d7b67ef3e917a3f49d6 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 30 Jan 2016 14:29:12 +0000 Subject: [PATCH] Fix headless build for CMake export --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.39.5