diff options
Diffstat (limited to 'TQtMacros.cmake')
| -rw-r--r-- | TQtMacros.cmake | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/TQtMacros.cmake b/TQtMacros.cmake index f6f856ab4..d28ea8c82 100644 --- a/TQtMacros.cmake +++ b/TQtMacros.cmake @@ -8,6 +8,28 @@ include( TDEMacros ) ################################################# ##### +##### tqt_expert_config +##### +##### If WITH_UNSUPORTED_CONFIG is not supplied prints messages and exits +##### +##### Syntax: +##### tqt_requires( opt [msg ...] ) + +macro( tqt_expert_config _opt ) + if( NOT WITH_UNSUPORTED_CONFIG ) + tde_message_fatal( + "${_opt} is not well-supported." + ${ARGN} + "Use -DWITH_UNSUPORTED_CONFIG=ON if you know what you are doing." + ) + else( ) + message( STATUS "Using expert configuration option: ${_opt}" ) + endif( ) +endmacro( tqt_expert_config ) + + +################################################# +##### ##### tqt_requires ##### ##### Asserts that if opt1 is set opt2 is set also |
