Christian Stimming schrieb: > 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.
Yes, if I add ADD_DEFINITIONS (-DHAVE_GUILE18) outside of the test everything compiles just fine. The if clause IF (Guile_FIND_VERSION_MAJOR AND ${GUILE_VERSION_MAJOR} EQUAL 1 AND Guile_FIND_VERSION_MINOR AND ${GUILE_VERSION_MINOR} GREATER 7) does not work. Removing Guile_FIND_VERSION_MAJOR and Guile_FIND_VERSION_MINOR from the test fixes it for me. See attached patch. I am not familiar with cmake at all, this is pure trial and error. So I don't know if this has any undesired side effects. Herbert. > 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 > -- Herbert Thoma Dipl.-Ing., MBA Head of Video Group Multimedia Realtime Systems Department Fraunhofer IIS Am Wolfsmantel 33, 91058 Erlangen, Germany Phone: +49-9131-776-6130 Fax: +49-9131-776-6099 email: t...@iis.fhg.de www: http://www.iis.fhg.de/
cutecash.patch.gz
Description: GNU Zip compressed data
_______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel