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.
This commit is contained in:
Peter Wu 2016-02-29 16:00:08 +01:00
parent 9c874bf9b5
commit d6c3b6e84c
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ if(ENABLE_THIRD_PARTY)
IMPORTED_LOCATION "${MRUBY_BUILD_DIR}/lib/${MRUBY_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/mruby/include"
)
add_dependencies(mruby-lib mruby)
# XXX clean ${CMAKE_CURRENT_BINARY_DIR}/mruby/build
endif()