On Saturday March 6 2010 13:46:03 Christian Stimming wrote: > Am Samstag, 6. März 2010 schrieb Herbert Thoma: > > >> Do you know how to check for the guile version and how to set the > > >> > > >> HAVE_GUILE18 if required in cmake? > > > > Does not seem to work :-( > > > > The check works. I added > > MESSAGE ("Found Guile ${GUILE_VERSION_MAJOR}.${GUILE_VERSION_MINOR}") > > to CMakeLists.txt and it reports 1.8. > > > > However, when I do make VERBOSE=1 I get: (...) > > > > There is no -DHAVE_GUILE18 in the gcc command line. Is it possible that > > ADD_DEFINITIONS (foobar) is not propagated to subdirs? > > According to the documentation of ADD_DEFINITIONS (run "cmake > --help-command add_definitions"), this command should specifically add > this to the current directory *and below*. ALso, for HAVE_CONFIG_H in > src/CMakeLists.txt this seems to work fine. It is weird if "make > VERBOSE=1" confirms it didn't arrive in the command line. > > However, you can experiment with copying the IF(...) clause from the > top-level CMakeLists.txt to the src/engine/CMakeLists.txt and see whether > this fixes it. > > Regards, > > Christian > _______________________________________________
I added ADD_DEFINITIONS( -DHAVE_GUILE18 ) to CMakeLists.txt and got a successful compile. It opens my file OK. Mike -- GPG Key: 1024D/050895C2 Keyserver: http://pgp.mit.edu/ Search String: 0x050895C2 _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel