mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-02 16:20:31 +00:00
cc256x: use python found by find_packet in CMake
This commit is contained in:
parent
4083f8da4e
commit
2c2f4ea053
@ -9,6 +9,7 @@
|
||||
set(BLUEKITCHEN_URL https://bluekitchen-gmbh.com/files/ti/service-packs)
|
||||
set(CONVERSION_SCRIPT ${BTSTACK_ROOT}/chipset/cc256x/convert_bts_init_scripts.py)
|
||||
|
||||
find_package (Python REQUIRED COMPONENTS Interpreter)
|
||||
#
|
||||
# Service Pack / Init Script / .bts Conversion function
|
||||
#
|
||||
@ -33,7 +34,7 @@ function(cc256x_init_script output_file archive main_script optional_script)
|
||||
add_custom_command(
|
||||
OUTPUT ${output_file}
|
||||
DEPENDS ${main_script} ${optional_script}
|
||||
COMMAND python
|
||||
COMMAND ${Python_EXECUTABLE}
|
||||
ARGS ${CONVERSION_SCRIPT} ${main_script} ${optional_script} ${output_file}
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user