On 18 Feb 2013, at 14:57, Erik Hofman <e...@ehofman.com> wrote: > > 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@
Hmm, I don't think it matter *how* you write the file: PROJECT_BINARY_DIR seems like the correct place based on my understand of cmake. I could be wrong of course, but it makes more sense to me than CMAKE_CURRENT_SOURCE_DIR. Since, we want to write version.h inside the build tree - the install hierarchy is no use, and we certainly don't want to write to the source dir! James ------------------------------------------------------------------------------ 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