mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-10 19:39:52 -05:00
Merge topic 'FindPkgConfig-cross-compile'
f92a4b2399 FindPkgConfig: Fix path manipulations when cross compiling
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4106
This commit is contained in:
@@ -337,7 +337,7 @@ macro(_pkg_set_path_internal)
|
||||
# remove empty values from the list
|
||||
list(REMOVE_ITEM _pkgconfig_path "")
|
||||
file(TO_NATIVE_PATH "${_pkgconfig_path}" _pkgconfig_path)
|
||||
if(UNIX)
|
||||
if(CMAKE_HOST_UNIX)
|
||||
string(REPLACE ";" ":" _pkgconfig_path "${_pkgconfig_path}")
|
||||
string(REPLACE "\\ " " " _pkgconfig_path "${_pkgconfig_path}")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user