diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-03-05 23:54:57 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-03-05 23:54:57 +0000 |
commit | b67ece773ccb72aafa48a4117a9aae82531e3aaf (patch) | |
tree | 9dd91fcd5599ae865bea43313ed7068eb4ec0177 /certmanager/ConfigureChecks.cmake | |
parent | a21c1c9b1dca09b9ab3a56d60e6f4c7a253689f8 (diff) | |
download | tdepim-b67ece773ccb72aafa48a4117a9aae82531e3aaf.tar.gz tdepim-b67ece773ccb72aafa48a4117a9aae82531e3aaf.zip |
[kdepim]: initial cmake support for following subpackages: akregator, certmanager, kaddressbook, kalarm, kioslaves, kmail, ktnef, libemailfunctions, libkcal, libkdenetwork, libkdepim, libkmime, libkpgp, libkpimidentities, libksieve, mimelib
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1223912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'certmanager/ConfigureChecks.cmake')
-rw-r--r-- | certmanager/ConfigureChecks.cmake | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/certmanager/ConfigureChecks.cmake b/certmanager/ConfigureChecks.cmake new file mode 100644 index 000000000..fc51483e8 --- /dev/null +++ b/certmanager/ConfigureChecks.cmake @@ -0,0 +1,22 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +# get MAX_CMD_LENGTH +execute_process( + COMMAND getconf ARG_MAX + OUTPUT_VARIABLE MAX_CMD_LENGTH + RESULT_VARIABLE _result + OUTPUT_STRIP_TRAILING_WHITESPACE ) +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" ) +set( MAX_CMD_LENGTH ${MAX_CMD_LENGTH} CACHE INTERNAL "" FORCE ) |