]> granicus.if.org Git - esp-idf/commitdiff
mbedtls: fix issue with non idf.py build on windows
authorRenz Christian Bagaporo <renz@espressif.com>
Thu, 13 Dec 2018 10:24:06 +0000 (18:24 +0800)
committerRenz Christian Bagaporo <renz@espressif.com>
Thu, 13 Dec 2018 12:44:29 +0000 (20:44 +0800)
components/mbedtls/CMakeLists.txt

index e138c2df8f3878d121cc29b161c70fe936e7a9df..2f052e18052213b75aec7462b913e4e0bb5b01a0 100644 (file)
@@ -18,7 +18,12 @@ endfunction()
 # Needed to for include_next includes to work from within mbedtls
 include_directories("${COMPONENT_PATH}/port/include")
 
-if(MSYS)
+# Needed in order to workaround issue with improper conversion to native path
+# when building on MSYS2. This ensures that when building on MSYS, Unix style 
+# paths are used.
+set(msystem $ENV{MSYSTEM})
+
+if(MSYS OR msystem)
     set(CMAKE_HOST_UNIX 1)
 endif()