diff options
author | Slávek Banko <[email protected]> | 2015-06-29 18:28:40 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2015-06-29 18:28:40 +0200 |
commit | 9097720c1da8fe553e05e5e7289f8cea4ac76fa2 (patch) | |
tree | 528c90fc2b4b784413a3614f9e63c0306c2f4330 /ConfigureChecks.cmake | |
parent | e073bebe73e323022db9b62771f4027d1d9479b6 (diff) | |
download | tdevelop-9097720c1da8fe553e05e5e7289f8cea4ac76fa2.tar.gz tdevelop-9097720c1da8fe553e05e5e7289f8cea4ac76fa2.zip |
Add gnu tar detection
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 7dad9c85..592f0c57 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -70,6 +70,29 @@ if( WITH_VCS_SUBVERSION ) endif( ) +##### check for gnu tar extensions ############# +if( NOT TAR ) + message( STATUS "Checking if tar supports GNU extensions" ) + foreach( TAR_CMD tar gtar gnutar ) + if( NOT TAR ) + execute_process( + COMMAND ${TAR_CMD} --version + OUTPUT_VARIABLE TAR_VERSION + ERROR_VARIABLE TAR_VERSION + ) + if( "${TAR_VERSION}" MATCHES "(GNU tar)" ) + set( TAR "${TAR_CMD}" CACHE INTERNAL "" FORCE ) + endif( ) + endif( ) + endforeach( TAR_CMD ) + if( TAR ) + message( STATUS "Checking if tar supports GNU extensions - ${TAR}" ) + else( ) + tde_message_fatal( "tar with GNU extensions is required but not found on your system" ) + endif( ) +endif( ) + + # required stuff find_package( TQt ) find_package( TDE ) |