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>
This commit is contained in:
parent
a97cda8b8b
commit
3b75024a94
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user