diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-05-18 21:16:00 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-05-19 13:27:15 +0200 |
commit | 3434e15ebd72a7ec96cbe5d5bbf951421c778dae (patch) | |
tree | ab9f857ff257485011baba8a026f7110c57eae7b /cmake | |
parent | 422649a59fe02c48faf927729d43e096c1229f13 (diff) |
CMake: Fix calling finalizers with empty arguments
Change-Id: I7a826a4cd5e38882932476ef31cdb949cc1949c8
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtBuild.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index d31077d948..2be45f9777 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -2018,7 +2018,7 @@ function(qt_add_list_file_finalizer func) PROPERTY QT_LIST_FILE_FINALIZER_FUNCS ${func}) foreach(i RANGE 1 9) set(arg "${ARGV${i}}") - if(i GREATER_EQUAL ARGC) + if(i GREATER_EQUAL ARGC OR "${arg}" STREQUAL "") set(arg "IGNORE") endif() set_property(GLOBAL APPEND |