From 2dbc318de9a4a33c019c6c6895ac8ddc2d8e6042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 16 Feb 2023 03:21:23 +0100 Subject: tde_add_ui_files: Fix the wrong automatic use of TQT_ONLY mode when building tdelibs as such. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- modules/TDEMacros.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 590d4a8..97b1f1b 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -414,6 +414,10 @@ endmacro( tde_install_la_file ) ##### tde_add_ui_files macro( tde_add_ui_files _sources ) + if( TDE_FOUND OR "${CMAKE_PROJECT_NAME}" STREQUAL "tdelibs" ) + set( HAVE_TDE 1 ) + endif() + foreach( _ui_file ${ARGN} ) get_filename_component( _ui_basename ${_ui_file} NAME_WE ) @@ -430,7 +434,7 @@ macro( tde_add_ui_files _sources ) -DUI_FILE:FILEPATH=${_ui_absolute_path} -DMASTER_SOURCE_DIR:FILEPATH=${CMAKE_SOURCE_DIR} -DMASTER_BINARY_DIR:FILEPATH=${CMAKE_BINARY_DIR} - -DTDE_FOUND=${TDE_FOUND} + -DTDE_FOUND=${HAVE_TDE} -DTQT_ONLY=${TQT_ONLY} -P ${TDE_CMAKE_MODULES}/tde_uic.cmake DEPENDS ${_ui_absolute_path} ) -- cgit v1.2.1