diff options
author | Brad King <brad.king@kitware.com> | 2019-12-05 16:43:28 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-12-05 16:47:10 (GMT) |
commit | 4c94b53b73ddf635928162c2fda3d46c741a226d (patch) | |
tree | da7f9e246040e8c9dc37fbbe487e53e105fc746a /Modules | |
parent | 25577946096b215d635202be6868602d8d8dbad1 (diff) | |
parent | f92a4b23994fa7516f16fbb5b3c02caa07534b3f (diff) | |
download | CMake-4c94b53b73ddf635928162c2fda3d46c741a226d.zip CMake-4c94b53b73ddf635928162c2fda3d46c741a226d.tar.gz CMake-4c94b53b73ddf635928162c2fda3d46c741a226d.tar.bz2 |
Merge topic 'FindPkgConfig-cross-compile'
f92a4b2399 FindPkgConfig: Fix path manipulations when cross compiling
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4106
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindPkgConfig.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake index 5162a44..f4b6ea1 100644 --- a/Modules/FindPkgConfig.cmake +++ b/Modules/FindPkgConfig.cmake @@ -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() |