aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Samuels <charles@kde.org>2007-10-22 16:12:19 +0000
committerCharles Samuels <charles@kde.org>2007-10-22 16:12:19 +0000
commit9b0119c83769c87434a97b278c71c949e2340763 (patch)
tree210287531fe842cf00f3b4634509f3e14c8ea504
parent088286a94a427fb4aa665fff9daac3fa5a474df0 (diff)
downloadextra-cmake-modules-9b0119c83769c87434a97b278c71c949e2340763.tar.gz
extra-cmake-modules-9b0119c83769c87434a97b278c71c949e2340763.tar.bz2
allow enable-final on kdepimlibs
svn path=/trunk/KDE/kdelibs/; revision=728169
-rw-r--r--modules/KDE4Macros.cmake7
1 files 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)