Hi all,
as reported in bug #905 tdebase cmake file does not check for long long support breaking stuff like memory info module.
To fix this I've added the following lines to CMakeLists.txt:
include( CheckTypeSize )
CHECK_TYPE_SIZE("long long" LONG_LONG)
and this line to config.h.cmake:
#cmakedefine HAVE_LONG_LONG 1
I'm not a cmake guru, just looked at the cmake wiki page, so please double-check.
-- Leandro -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it: http://www.email.it/f
Sponsor: Apri subito Conto Corrente Arancio. Carta Visa Gratis e nessun Canone! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=12247&d=20120331
-- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor: Apri subito Conto Corrente Arancio. Carta Visa Gratis e nessun Canone! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=12247&d=31-3
as reported in bug #905 tdebase cmake file does not check for long long support breaking stuff like memory info module.
To fix this I've added the following lines to CMakeLists.txt:
include( CheckTypeSize )
CHECK_TYPE_SIZE("long long" LONG_LONG)
and this line to config.h.cmake:
#cmakedefine HAVE_LONG_LONG 1
I'm not a cmake guru, just looked at the cmake wiki page, so please double-check.
Serghei or other cmake guru,
Would you please validate this proposal?
Leandro,
When validated, would you please attach a patch to bug report 905?
Darrell
On Sunday 01 April 2012 00:38:55 Darrell Anderson wrote:
as reported in bug #905 tdebase cmake file does not check for long long support breaking stuff like memory info module.
To fix this I've added the following lines to CMakeLists.txt:
include( CheckTypeSize )
CHECK_TYPE_SIZE("long long" LONG_LONG)
and this line to config.h.cmake:
#cmakedefine HAVE_LONG_LONG 1
I'm not a cmake guru, just looked at the cmake wiki page, so please double-check.
Serghei or other cmake guru,
Would you please validate this proposal?
Yes, it's correct. Just use small letters for macros (i.e. check_type_size) and add spaces between parentheses:
check_type_size( "long long" LONG_LONG )
Is not very important, but the cmake code will be uniform and easy readable.
Would you please validate this proposal?
Yes, it's correct. Just use small letters for macros (i.e. check_type_size) and add spaces between parentheses:
check_type_size( "long long" LONG_LONG )
Is not very important, but the cmake code will be uniform and easy readable.
Thank you!
Darrell