]> granicus.if.org Git - esp-idf/commitdiff
tools: fix makefile converter windows path issue
authorRenz Christian Bagaporo <renz@espressif.com>
Tue, 11 Dec 2018 12:07:18 +0000 (20:07 +0800)
committerRenz Christian Bagaporo <renz@espressif.com>
Thu, 13 Dec 2018 10:20:51 +0000 (18:20 +0800)
tools/cmake/convert_to_cmake.py

index d792dd11b5d6edc1d0be041ef2b9aa57ccad068c..5eea50f81c1e115a5929093d61f2c92dff726b7a 100755 (executable)
@@ -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"]