From 5d6e21795bef14e4b1a64a2970b953efa314c9d8 Mon Sep 17 00:00:00 2001 From: Renz Christian Bagaporo Date: Tue, 11 Dec 2018 20:07:18 +0800 Subject: [PATCH] tools: fix makefile converter windows path issue --- tools/cmake/convert_to_cmake.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/cmake/convert_to_cmake.py b/tools/cmake/convert_to_cmake.py index d792dd11b..5eea50f81 100755 --- a/tools/cmake/convert_to_cmake.py +++ b/tools/cmake/convert_to_cmake.py @@ -118,6 +118,10 @@ def convert_project(project_path): # Convert components as needed for p in component_paths: + if "MSYSTEM" in os.environ: + cmd = ["cygpath", "-w", p] + p = subprocess.check_output(cmd).strip() + convert_component(project_path, p) project_name = project_vars["PROJECT_NAME"]