diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4e6b09a82..12218f997 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -670,7 +670,7 @@ add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/xlat_parser.c ${CMAKE_CUR add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/zcc-parse.c ${CMAKE_CURRENT_BINARY_DIR}/zcc-parse.h COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/zscript/zcc-parse.lemon . - COMMAND ${LEMON_EXE} zcc-parse.lemon + COMMAND lemon zcc-parse.lemon WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} DEPENDS lemon ${CMAKE_CURRENT_SOURCE_DIR}/zscript/zcc-parse.lemon )