On 02/18/2013 03:36 PM, Curtis Olson wrote:
> Ok, I see now that in simgear-2.10.tar.bz2 the top level file "version"
> does report 2.10.0 but the simgear/version.h file is saying 2.8.0
>
> So my question are:
>
> 1. for an out-of-source build, why is the build system writing files in
> the source tree?  Can we fix that?
> 2. what is the proper cmake fix here so it doesn't happen in the future?

I see that simgear/CMakeList.txt defines:

file(WRITE ${PROJECT_BINARY_DIR}/simgear/version.h "#define 
SIMGEAR_VERSION ${SIMGEAR_VERSION}")

it would be better to create a version.h.in file and use

CONFIGURE_FILE(
     "${CMAKE_CURRENT_SOURCE_DIR}/simgear/version.h.in

containing:
#define SIMGEAR_VERSION       @SIMGEAR_VERSION@

Erik

-- 
http://www.adalin.com
- Hardware accelerated AeonWave and OpenAL for Windows and Linux

------------------------------------------------------------------------------
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