Skip to content

Commit

Permalink
Use bison generated outputs. Fixes GH #3
Browse files Browse the repository at this point in the history
  • Loading branch information
jonforums committed May 4, 2012
1 parent 0c65246 commit ac6c1dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ BISON_TARGET(mruby parse.y "${CMAKE_CURRENT_BINARY_DIR}/parse.c")

# configure_file("config.in.h" "config.h")
file(GLOB MRUBY_SRC_C "*.c")
add_library(ritevm_object OBJECT ${MRUBY_SRC_C})
list(APPEND MRUBY_SRC_C "${CMAKE_CURRENT_BINARY_DIR}/parse.c")

add_library(ritevm_object OBJECT ${MRUBY_SRC_C} ${BISON_mruby_OUTPUTS})
add_library(ritevm_static STATIC $<TARGET_OBJECTS:ritevm_object>)
add_library(ritevm SHARED $<TARGET_OBJECTS:ritevm_object>)

Expand Down

0 comments on commit ac6c1dc

Please sign in to comment.