diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-03-30 03:08:36 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-03-30 03:08:36 +0000 |
commit | 59a83e95380d504905f8f8804e30ee23f8744b92 (patch) | |
tree | 9fcbc85878fe544bfbc06b3d367e51f4e4a742f0 /certmanager | |
parent | d8242ced8450d5d43e8e2425b7aecb3d01c89805 (diff) | |
download | tdepim-59a83e95380d504905f8f8804e30ee23f8744b92.tar.gz tdepim-59a83e95380d504905f8f8804e30ee23f8744b92.zip |
Fix FTBFS on 64 bit systems
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1226452 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'certmanager')
-rw-r--r-- | certmanager/ConfigureChecks.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/certmanager/ConfigureChecks.cmake b/certmanager/ConfigureChecks.cmake index 6148f0561..8d8d6a256 100644 --- a/certmanager/ConfigureChecks.cmake +++ b/certmanager/ConfigureChecks.cmake @@ -20,5 +20,13 @@ if( _result ) tde_message_fatal( "Unable to run getconf!\n MAX_CMD_LENGTH cannot be determined." ) endif() math( EXPR MAX_CMD_LENGTH "(${MAX_CMD_LENGTH} / 4) * 3" ) +# Work around a 64 bit bug in the CMake math function above +if( NOT MAX_CMD_LENGTH ) + execute_process( + COMMAND getconf ARG_MAX + OUTPUT_VARIABLE MAX_CMD_LENGTH + RESULT_VARIABLE _result + OUTPUT_STRIP_TRAILING_WHITESPACE ) +endif() message( STATUS " found ${MAX_CMD_LENGTH}" ) set( MAX_CMD_LENGTH ${MAX_CMD_LENGTH} CACHE INTERNAL "" FORCE ) |