summaryrefslogtreecommitdiffhomepage
path: root/tools/mrbc/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mrbc/CMakeLists.txt')
-rw-r--r--tools/mrbc/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mrbc/CMakeLists.txt b/tools/mrbc/CMakeLists.txt
index 71a3a937d..043b7dc83 100644
--- a/tools/mrbc/CMakeLists.txt
+++ b/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)