From 1abb98e1dd54b331ec73609a5b3074bc6a4d69de Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sun, 14 Jul 2013 21:05:01 -0400 Subject: [PATCH] ragel compiler flags --- toolbox/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/toolbox/CMakeLists.txt b/toolbox/CMakeLists.txt index 89b1066..ad93762 100644 --- a/toolbox/CMakeLists.txt +++ b/toolbox/CMakeLists.txt @@ -21,12 +21,17 @@ set(TOOLBOX_SRC ) - add_custom_command( OUTPUT saneparser.cpp COMMAND ragel -p -G2 -o saneparser.cpp "${CMAKE_CURRENT_SOURCE_DIR}/saneparser.rl" MAIN_DEPENDENCY saneparser.rl ) +set_source_files_properties( + saneparser.cpp + PROPERTIES + COMPILE_FLAGS + "${CMAKE_CXX_FLAGS} -Wno-unused-variable" +) add_library(TOOLBOX_LIB ${TOOLBOX_SRC}) \ No newline at end of file