easm: Fix compilation in directories with space in name.
@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 2.6)
find_package(FLEX REQUIRED)
find_package(BISON REQUIRED)
-flex_target(easm_lex easm_lex.l ${CMAKE_CURRENT_BINARY_DIR}/easm_lex.c COMPILE_FLAGS --header-file=${CMAKE_CURRENT_BINARY_DIR}/easm_lex.h)
+flex_target(easm_lex easm_lex.l ${CMAKE_CURRENT_BINARY_DIR}/easm_lex.c DEFINES_FILE ${CMAKE_CURRENT_BINARY_DIR}/easm_lex.h)
bison_target(easm_parse easm_parse.y ${CMAKE_CURRENT_BINARY_DIR}/easm_parse.c)
add_flex_bison_dependency(easm_lex easm_parse)
