Allow LEMON_EXE to be set externally, required for cross compiling

This commit is contained in:
Marek Roszko 2023-04-10 20:27:33 -04:00
parent a6d10c8e97
commit 9c0dda2d56
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ function( generate_lemon_grammar TGT GRAMMAR_DIR CONSUMING_FILE GRAMMAR_FILE )
file( MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${GRAMMAR_DIR} )
set( LEMON_EXE $<TARGET_FILE:lemon>)
set( LEMON_EXE $<TARGET_FILE:lemon> CACHE FILEPATH "Path to Lemon Executable" )
get_property( LEMON_TEMPLATE
TARGET lemon