diff --git a/source/adios2/CMakeLists.txt b/source/adios2/CMakeLists.txt index 1bebf6cc29..0b37f5f9a5 100644 --- a/source/adios2/CMakeLists.txt +++ b/source/adios2/CMakeLists.txt @@ -151,7 +151,7 @@ if (ADIOS2_HAVE_Derived_Variable) FLEX_TARGET(MyScanner toolkit/derived/parser/lexer.l ${CMAKE_CURRENT_BINARY_DIR}/lexer.cpp - COMPILE_FLAGS "--header-file=lexer.h" + COMPILE_FLAGS "-o lexer.cpp --header-file=lexer.h" DEFINES_FILE ${CMAKE_CURRENT_BINARY_DIR}/lexer.h) ADD_FLEX_BISON_DEPENDENCY(MyScanner MyParser) endif()