Commit d6c3b6e8 authored by Peter Wu's avatar Peter Wu

cmake: fix mruby dependency

Ensure that the mruby build is triggered when the surrogate "mruby-lib"
target is used. Fixes building nghttpx when mruby is missing.
...@@ -59,6 +59,7 @@ if(ENABLE_THIRD_PARTY) ...@@ -59,6 +59,7 @@ if(ENABLE_THIRD_PARTY)
IMPORTED_LOCATION "${MRUBY_BUILD_DIR}/lib/${MRUBY_LIBRARY}" IMPORTED_LOCATION "${MRUBY_BUILD_DIR}/lib/${MRUBY_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/mruby/include" INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/mruby/include"
) )
add_dependencies(mruby-lib mruby)
# XXX clean ${CMAKE_CURRENT_BINARY_DIR}/mruby/build # XXX clean ${CMAKE_CURRENT_BINARY_DIR}/mruby/build
endif() endif()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment