diff options
author | Matthias Kretz <kretz@kde.org> | 2007-07-13 20:18:04 +0000 |
---|---|---|
committer | Matthias Kretz <kretz@kde.org> | 2007-07-13 20:18:04 +0000 |
commit | 044398c552f385bf7c66db81379f497e15b0486a (patch) | |
tree | 0549abab6982d6bf9116467b153e10e9ba60565f | |
parent | ec6dd260cb0c469e8562dc68615b7944fa91be07 (diff) | |
download | extra-cmake-modules-044398c552f385bf7c66db81379f497e15b0486a.tar.gz extra-cmake-modules-044398c552f385bf7c66db81379f497e15b0486a.tar.bz2 |
alex says list(append is faster than set(foo ${foo}
svn path=/trunk/KDE/kdelibs/; revision=687518
-rw-r--r-- | modules/KDE4Macros.cmake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake index e692f8c6..af0f2448 100644 --- a/modules/KDE4Macros.cmake +++ b/modules/KDE4Macros.cmake @@ -172,7 +172,7 @@ macro (KDE4_MOC_HEADERS _target_NAME) foreach (_current_FILE ${ARGN}) get_filename_component(_suffix "${_current_FILE}" EXT) if (".h" STREQUAL "${_suffix}" OR ".hpp" STREQUAL "${_suffix}" OR ".hxx" STREQUAL "${_suffix}" OR ".H" STREQUAL "${_suffix}") - set (_headers_to_moc ${_headers_to_moc} ${_current_FILE}) + list(APPEND _headers_to_moc ${_current_FILE}) else (".h" STREQUAL "${_suffix}" OR ".hpp" STREQUAL "${_suffix}" OR ".hxx" STREQUAL "${_suffix}" OR ".H" STREQUAL "${_suffix}") message(STATUS "KDE4_MOC_HEADERS: ignoring non-header file ${_current_FILE}") endif (".h" STREQUAL "${_suffix}" OR ".hpp" STREQUAL "${_suffix}" OR ".hxx" STREQUAL "${_suffix}" OR ".H" STREQUAL "${_suffix}") @@ -193,8 +193,8 @@ macro(KDE4_HANDLE_AUTOMOC _target_NAME _SRCS) if(NOT _headers_to_moc STREQUAL "NOTFOUND") foreach(_header_to_moc ${_headers_to_moc}) get_filename_component(_abs_header ${_header_to_moc} ABSOLUTE) - set(_moc_files ${_moc_files} ${_abs_header}) - set(_moc_headers ${_moc_headers} ${_abs_header}) + list(APPEND _moc_files ${_abs_header}) + list(APPEND _moc_headers ${_abs_header}) endforeach(_header_to_moc) endif(NOT _headers_to_moc STREQUAL "NOTFOUND") @@ -212,9 +212,9 @@ macro(KDE4_HANDLE_AUTOMOC _target_NAME _SRCS) get_filename_component(_abs_path "${_abs_current_FILE}" PATH) set(_header "${_abs_path}/${_basename}.h") if(EXISTS "${_header}") - set(_moc_headers ${_moc_headers} ${_header}) + list(APPEND _moc_headers ${_header}) endif(EXISTS "${_header}") - set(_moc_files ${_moc_files} ${_abs_current_FILE}) + list(APPEND _moc_files ${_abs_current_FILE}) endif(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C") endif(NOT _generated AND NOT _skip) endforeach (_current_FILE) |