diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-09-11 02:29:12 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-09-11 02:29:57 +0200 |
commit | 7a1af292fde40f97ba88b62a2f318742a7b5a860 (patch) | |
tree | d5a295c9b06d5f695ea4dd269cf3b85bc328cea6 /ConfigureChecks.cmake | |
parent | 70767b8295da95219429da0e1c626228e38cb19c (diff) | |
download | tqtinterface-7a1af292fde40f97ba88b62a2f318742a7b5a860.tar.gz tqtinterface-7a1af292fde40f97ba88b62a2f318742a7b5a860.zip |
cmake: Add BUILD_ALL and WITH_ALL_OPTIONS for consistency with other modules
Added warning for building TQt interface based on Qt4
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 5c2dda650e168f597899912c2a111d2c84b4771d)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 514020d..4ea1e39 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -13,11 +13,24 @@ macro( qt_message ) message( STATUS "${ARGN}" ) endmacro( ) +if( (WITH_QT3 OR USE_QT3) AND (WITH_QT4 OR USE_QT4) ) + tde_message_fatal( "Options WITH_QT3 and WITH_QT4 are mutually exclusive." ) +endif( ) -if( DEFINED USE_QT3 ) +if( WITH_QT3 OR USE_QT3 ) set( QT_VERSION "3" ) -elseif( DEFINED USE_QT4 ) +elseif( WITH_QT4 OR USE_QT4 ) set( QT_VERSION "4" ) + message( AUTHOR_WARNING + " ------------------------------------------------------------- \n" + " *** NOTE *** \n" + " \n" + " The code for the TQt interface based on Qt4 is not maintained \n" + " and the result can cause unexpected problems.\n" + " \n" + " It is not recommended to build a TQt interface based on Qt4!\n" + " ------------------------------------------------------------- \n" + ) endif() |