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 "/",
|
# Takes a list of path components and joins them into one path separated by forward slashes "/",
|
||||||
# and saves the path in out_var.
|
# and saves the path in out_var.
|
||||||
function(qt_path_join out_var)
|
function(qt_path_join out_var)
|
||||||
# Remove output variable.
|
string(JOIN "/" path ${ARGN})
|
||||||
set(argv ${ARGV})
|
|
||||||
list(REMOVE_AT argv 0)
|
|
||||||
|
|
||||||
# Join the path components.
|
|
||||||
string(JOIN "/" path ${argv})
|
|
||||||
set(${out_var} ${path} PARENT_SCOPE)
|
set(${out_var} ${path} PARENT_SCOPE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user