diff options
Diffstat (limited to 'modules')
| -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)  | 
