diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2015-06-29 18:28:40 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-06-29 18:33:40 +0200 |
commit | 1fafa273329c2c4be693a85649a51b8f2364e236 (patch) | |
tree | e1fd686786e7277af307e1233bb6f0b4538fd706 /ConfigureChecks.cmake | |
parent | 59301244a25e29e0b3543b90a1a2dcff33faf48a (diff) | |
download | tdevelop-1fafa273329c2c4be693a85649a51b8f2364e236.tar.gz tdevelop-1fafa273329c2c4be693a85649a51b8f2364e236.zip |
Add gnu tar detection
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 9097720c1da8fe553e05e5e7289f8cea4ac76fa2)
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 ) |