mirror of
https://github.com/ksherlock/mpw.git
synced 2025-01-07 00:29:44 +00:00
-W-no-unused for ragel generated code
This commit is contained in:
parent
ece1984c5c
commit
e571c7066d
@ -20,7 +20,7 @@ add_custom_command(
|
||||
MAIN_DEPENDENCY lexer.rl
|
||||
)
|
||||
|
||||
add_custom_command(
|
||||
add_custom_command(
|
||||
OUTPUT parser.cpp parser.h
|
||||
COMMAND cp -f "${CMAKE_CURRENT_SOURCE_DIR}/parser.lemon" "parser.lemon"
|
||||
COMMAND lemon parser.lemon
|
||||
@ -38,6 +38,15 @@ add_custom_command(
|
||||
DEPENDS debugger.h
|
||||
)
|
||||
|
||||
|
||||
set_source_files_properties(
|
||||
loadtrap.cpp lexer.cpp
|
||||
PROPERTIES
|
||||
COMPILE_FLAGS
|
||||
"${CMAKE_CXX_FLAGS} -Wno-unused-variable"
|
||||
)
|
||||
|
||||
|
||||
add_executable(mpw loader.cpp debugger.cpp address_map.cpp lexer.cpp parser.cpp loadtrap.cpp)
|
||||
target_link_libraries(mpw CPU_LIB)
|
||||
target_link_libraries(mpw TOOLBOX_LIB)
|
||||
|
@ -12,5 +12,11 @@ add_custom_command(
|
||||
MAIN_DEPENDENCY environ.rl
|
||||
)
|
||||
|
||||
set_source_files_properties(
|
||||
environ.cpp
|
||||
PROPERTIES
|
||||
COMPILE_FLAGS
|
||||
"${CMAKE_CXX_FLAGS} -Wno-unused-variable"
|
||||
)
|
||||
|
||||
add_library(MPW_LIB ${MPW_SRC})
|
Loading…
Reference in New Issue
Block a user