summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-06-17 15:43:57 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-06-17 18:05:46 +0200
commit3b75024a94101ab221fb3ef496baf564b71729d2 (patch)
tree5e89e75cc184eee0b41c0c928db47c7f29f03467 /cmake
parenta97cda8b8b5806d3fd170c6ffd56094bbd60bd65 (diff)
CMake: Simplify the qt_path_join function
Use ARGN that already has the out_var parameter removed. Change-Id: I79438caa4333a11493456fa219448ad500518880 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtBuild.cmake7
1 files changed, 1 insertions, 6 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake
index f6626730f3..72efb31335 100644
--- a/cmake/QtBuild.cmake
+++ b/cmake/QtBuild.cmake
@@ -1255,12 +1255,7 @@ endfunction()
# Takes a list of path components and joins them into one path separated by forward slashes "/",
# and saves the path in out_var.
function(qt_path_join out_var)
- # Remove output variable.
- set(argv ${ARGV})
- list(REMOVE_AT argv 0)
-
- # Join the path components.
- string(JOIN "/" path ${argv})
+ string(JOIN "/" path ${ARGN})
set(${out_var} ${path} PARENT_SCOPE)
endfunction()