From ae9757bf43940db6ef1c53aa1769465ab657ebcb Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 19 Dec 2010 19:08:14 +0000 Subject: [PATCH] Create version.h during SimGear CMake build --- simgear/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simgear/CMakeLists.txt b/simgear/CMakeLists.txt index 93a4e81a..3f6f03c5 100644 --- a/simgear/CMakeLists.txt +++ b/simgear/CMakeLists.txt @@ -1,4 +1,6 @@ +file(WRITE ${PROJECT_BINARY_DIR}/simgear/version.h "#define SIMGEAR_VERSION ${SIMGEAR_VERSION}") + foreach( mylibfolder bucket debug @@ -30,7 +32,7 @@ endif() -set(HEADERS compiler.h constants.h sg_inlines.h version.h) +set(HEADERS compiler.h constants.h sg_inlines.h ${PROJECT_BINARY_DIR}/simgear/version.h) install (FILES ${HEADERS} DESTINATION include/simgear/) if(SIMGEAR_SHARED) -- 2.39.5