From bd67b975ff7912f51c09dcc348bf7aa81fcf05ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 16 Nov 2024 18:48:07 +0100 Subject: [PATCH] tde_add_project_docs: Automatically add project name only in known cases. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- modules/TDEMacros.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 0fa67ef..b0de2d0 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -2347,7 +2347,9 @@ function( tde_add_project_docs ) add_subdirectory( ${DOCS_SOURCE_DIR}/${_dir} ) else() unset( _skip_subdir ) - if( ${_dir} MATCHES "/[^/]*/" ) + if( ${_dir} MATCHES "/[^/]*/" OR + ( ${_dir} MATCHES "/" AND + NOT ${_dir} MATCHES "^[^/]*/(kcontrol|tdeioslave)$" )) string( REGEX REPLACE "^[^/]*/(.*)" "\\1" _doc_dest "${_dir}" ) else() string( REGEX REPLACE "^[^/]*/(.*)" "\\1" _doc_dest "${_dir}/${PROJECT_NAME}" )