Skip to content
Browse files

Simplify CMake mruby object library

Also removes an unnecessary build target from the CMake generated
build and project files.
  • Loading branch information...
1 parent c14e440 commit 6f4eda74015d30083d406d227f6675302484c9f1 @jonforums jonforums committed May 27, 2012
Showing with 2 additions and 3 deletions.
  1. +0 −1 src/CMakeLists.txt
  2. +2 −2 tools/mrbc/CMakeLists.txt
View
1 src/CMakeLists.txt
@@ -7,6 +7,5 @@ file(GLOB MRUBY_SRC_C "*.c")
list(APPEND MRUBY_SRC_C "${CMAKE_CURRENT_BINARY_DIR}/parse.c")
add_library(mruby_object OBJECT ${MRUBY_SRC_C} ${BISON_mruby_OUTPUTS})
-add_library(mruby_static STATIC EXCLUDE_FROM_ALL $<TARGET_OBJECTS:mruby_object>)
# vim: ts=2 sts=2 sw=2 et
View
4 tools/mrbc/CMakeLists.txt
@@ -1,8 +1,8 @@
# build tools/mrbc executable
file(GLOB MRBC_SRC_C "*.c")
-add_executable(mrbc ${MRBC_SRC_C})
-target_link_libraries(mrbc mruby_static ${MRUBY_LIBS})
+add_executable(mrbc ${MRBC_SRC_C} $<TARGET_OBJECTS:mruby_object>)
+target_link_libraries(mrbc ${MRUBY_LIBS})
install(TARGETS mrbc RUNTIME DESTINATION bin)

0 comments on commit 6f4eda7

Please sign in to comment.
Something went wrong with that request. Please try again.