cmake: quote paths to prevent issues when no install prefix is set
Change-Id: Ifa7f1ef70c4893e10cb4ce9a54d8a0806d19be93 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
999c79863c
commit
35608c0761
@ -283,7 +283,7 @@ function(qt_compute_relative_path_from_cmake_config_dir_to_prefix)
|
||||
endif()
|
||||
file(RELATIVE_PATH
|
||||
qt_path_from_cmake_config_dir_to_prefix
|
||||
${clean_config_prefix} ${CMAKE_INSTALL_PREFIX})
|
||||
"${clean_config_prefix}" "${CMAKE_INSTALL_PREFIX}")
|
||||
set(qt_path_from_cmake_config_dir_to_prefix "${qt_path_from_cmake_config_dir_to_prefix}"
|
||||
PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
@ -14,7 +14,7 @@ else()
|
||||
get_filename_component(_clean_prefix "${QT_CONFIG_BUILD_DIR}" ABSOLUTE)
|
||||
endif()
|
||||
file(RELATIVE_PATH QT_INVERSE_CONFIG_INSTALL_DIR
|
||||
${_clean_prefix} ${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX})
|
||||
"${_clean_prefix}" "${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX}")
|
||||
|
||||
# special case end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user