tde_add_project_docs: Automatically add project name only in known cases.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
master
Slávek Banko 5 days ago
parent eb4d7722f6
commit bd67b975ff
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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}" )

Loading…
Cancel
Save