]> granicus.if.org Git - esp-idf/commitdiff
cmake: partition_table: Use PYTHON interpreter when running parttool.py (fixes flashe...
authorAngus Gratton <angus@espressif.com>
Mon, 27 Aug 2018 10:02:30 +0000 (18:02 +0800)
committerAngus Gratton <gus@projectgus.com>
Wed, 29 Aug 2018 12:22:55 +0000 (20:22 +0800)
components/partition_table/project_include.cmake

index 07ba2cce02b0e5acca6c7625d74c32e2f0b219fd..01442647229ac30a5e350af7090b65bc1fa38044 100644 (file)
@@ -29,7 +29,7 @@ set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${PARTITION_CSV_P
 # Parse the partition table to get variable partition offsets & sizes which must be known at CMake runtime
 function(get_partition_info variable get_part_info_args)
     separate_arguments(get_part_info_args)
-    execute_process(COMMAND
+    execute_process(COMMAND ${PYTHON}
         ${COMPONENT_PATH}/parttool.py -q
         --partition-table-offset ${PARTITION_TABLE_OFFSET}
         ${get_part_info_args}