From 9b0119c83769c87434a97b278c71c949e2340763 Mon Sep 17 00:00:00 2001 From: Charles Samuels Date: Mon, 22 Oct 2007 16:12:19 +0000 Subject: allow enable-final on kdepimlibs svn path=/trunk/KDE/kdelibs/; revision=728169 --- modules/KDE4Macros.cmake | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake index 0c79e45c..e37eeb32 100644 --- a/modules/KDE4Macros.cmake +++ b/modules/KDE4Macros.cmake @@ -486,11 +486,12 @@ macro (KDE4_CREATE_FINAL_FILES _filenameCPP _filesExcludedFromFinalFile ) # don't include c-files in the final-file, because they usually come # from a 3rd party and as such are not intended to be compiled all-in-one string(REGEX MATCH ".+\\.c$" _isCFile ${_abs_FILE}) - if (_isCFile) + string(REGEX MATCH ".+\\.h$" _isHFile ${_abs_FILE}) + if (_isCFile OR _isHFile) list(APPEND ${_filesExcludedFromFinalFile} ${_abs_FILE}) - else (_isCFile) + else (_isCFile OR _isHFile) file(APPEND ${_filenameCPP} "#include \"${_abs_FILE}\"\n") - endif (_isCFile) + endif (_isCFile OR _isHFile) endif (_isGenerated) endforeach (_current_FILE) -- cgit v1.2.1