Specify the dependency differently to (try to) appease CMake 3.12

master
Jos van den Oever 2018-09-28 19:28:59 +02:00
parent d7860d9031
commit 83e5f01fe0
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ add_custom_command(
# if the cpp file is marked GENERATED, CMake will not check it for moc
# "${CMAKE_CURRENT_SOURCE_DIR}/src/Bindings.cpp"
COMMAND ${RustQtBindingGenerator_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/bindings.json"
DEPENDS ${RustQtBindingGenerator_EXECUTABLE} bindings.json
DEPENDS rust_qt_binding_generator bindings.json
)
# compile the rust code into a static library