Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions xml/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ add_subdirectory( test )
include_directories( . )
include_directories(${LIBXML2_INCLUDE_DIR})

include(FindPythonInterp)
include(FindPython2)
find_package(LibXml2)

if(NOT CMAKE_C_FLAGS)
Expand All @@ -11,7 +11,7 @@ if(NOT CMAKE_C_FLAGS)
endif()

add_custom_command(OUTPUT zw_gen_hdr.c
COMMAND ${PYTHON_EXECUTABLE} generate_c_decoder.py > ${CMAKE_CURRENT_BINARY_DIR}/zw_gen_hdr.c
COMMAND ${Python2_EXECUTABLE} generate_c_decoder.py > ${CMAKE_CURRENT_BINARY_DIR}/zw_gen_hdr.c
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe sheebang (#!/usr/bin/env python2) could be added to script too and run without interpreter

DEPENDS generate_c_decoder.py ../config/ZWave_custom_cmd_classes.xml
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
Expand Down