]> git.mxchange.org Git - simgear.git/commitdiff
Fix headless build for CMake export
authorJames Turner <zakalawe@mac.com>
Sat, 30 Jan 2016 14:29:12 +0000 (14:29 +0000)
committerJames Turner <zakalawe@mac.com>
Sat, 30 Jan 2016 14:29:12 +0000 (14:29 +0000)
CMakeLists.txt

index 7609844ab40f18a7737d610707f284f42b0d738a..07815047a8a475e67643be6548d73657498f012a 100644 (file)
@@ -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)