summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/TDEMacros.cmake4
1 files changed, 3 insertions, 1 deletions
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}" )