From c51d394b912d3b6e2d8608aff2954e00ccc54970 Mon Sep 17 00:00:00 2001 From: Alexander Vieth Date: Mon, 23 Sep 2024 14:37:27 +0200 Subject: [PATCH] better path handling --- conanfile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conanfile.py b/conanfile.py index 78e63ae..6295999 100644 --- a/conanfile.py +++ b/conanfile.py @@ -124,9 +124,9 @@ def generate(self): tc.variables["MV_UNITY_BUILD"] = "ON" # Install vcpkg dependencies - vcpkg_dir = os.environ["VCPKG_ROOT"] - vcpkg_exe = os.path.join(vcpkg_dir, "vcpkg.exe") if self.settings.os == "Windows" else os.path.join(vcpkg_dir, "vcpkg") - vcpkg_tc = os.path.join(vcpkg_dir, "scripts", "buildsystems", "vcpkg.cmake") + vcpkg_dir = pathlib.Path(os.environ["VCPKG_ROOT"]).as_posix() + vcpkg_exe = vcpkg_dir / "vcpkg.exe" if self.settings.os == "Windows" else vcpkg_dir / "vcpkg" + vcpkg_tc = vcpkg_dir / "scripts" / "buildsystems" / "vcpkg.cmake" vcpkg_triplet = "x64-windows" if self.settings.os == "Macos":