Required Cutecash dependencies

Mike Evans mikee at saxicola.idps.co.uk
Sat Mar 6 09:31:52 EST 2010


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


More information about the gnucash-devel mailing list