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>bb10
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…
Reference in New Issue