Verbosify command length check

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1226437 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 3cf4fe3a34
commit d8242ced84

@ -10,6 +10,7 @@
################################################# #################################################
# get MAX_CMD_LENGTH # get MAX_CMD_LENGTH
message( STATUS "Checking for maximum argument length" )
execute_process( execute_process(
COMMAND getconf ARG_MAX COMMAND getconf ARG_MAX
OUTPUT_VARIABLE MAX_CMD_LENGTH OUTPUT_VARIABLE MAX_CMD_LENGTH
@ -19,4 +20,5 @@ if( _result )
tde_message_fatal( "Unable to run getconf!\n MAX_CMD_LENGTH cannot be determined." ) tde_message_fatal( "Unable to run getconf!\n MAX_CMD_LENGTH cannot be determined." )
endif() endif()
math( EXPR MAX_CMD_LENGTH "(${MAX_CMD_LENGTH} / 4) * 3" ) math( EXPR MAX_CMD_LENGTH "(${MAX_CMD_LENGTH} / 4) * 3" )
message( STATUS " found ${MAX_CMD_LENGTH}" )
set( MAX_CMD_LENGTH ${MAX_CMD_LENGTH} CACHE INTERNAL "" FORCE ) set( MAX_CMD_LENGTH ${MAX_CMD_LENGTH} CACHE INTERNAL "" FORCE )

Loading…
Cancel
Save