From 3b75024a94101ab221fb3ef496baf564b71729d2 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Wed, 17 Jun 2020 15:43:57 +0200 Subject: CMake: Simplify the qt_path_join function Use ARGN that already has the out_var parameter removed. Change-Id: I79438caa4333a11493456fa219448ad500518880 Reviewed-by: Alexandru Croitor --- cmake/QtBuild.cmake | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'cmake') 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() -- cgit v1.2.3