Ok that got tangled up. Here's a diff.

Erik

--
http://www.adalin.com
- Hardware accelerated AeonWave and OpenAL for Windows and Linux
diff --git a/simgear/CMakeLists.txt b/simgear/CMakeLists.txt
index b4e299a..0725a78 100644
--- a/simgear/CMakeLists.txt
+++ b/simgear/CMakeLists.txt
@@ -1,5 +1,7 @@
 
-file(WRITE ${PROJECT_BINARY_DIR}/simgear/version.h "#define SIMGEAR_VERSION ${SIMGEAR_VERSION}")
+CONFIGURE_FILE(
+     "${CMAKE_CURRENT_SOURCE_DIR}/version.h.in"
+     "${CMAKE_CURRENT_BINARY_DIR}/version.h")
 
 foreach( mylibfolder 
         bucket
diff --git a/simgear/version.h.in b/simgear/version.h.in
index 635495e..a3def5d 100644
--- a/simgear/version.h.in
+++ b/simgear/version.h.in
@@ -26,7 +26,7 @@
 #define _SIMGEAR_VERSION_H
 
 
-#define SIMGEAR_VERSION @VERSION@
+#define SIMGEAR_VERSION @SIMGEAR_VERSION@
 
 
 #endif // _SIMGEAR_VERSION_H
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to