9 lines
297 B
CMake
9 lines
297 B
CMake
set(crates "${CMAKE_BINARY_DIR}/crates")
|
|
set(diplomat "${crates}/bin/diplomat-tool")
|
|
|
|
if(NOT IS_EXECUTABLE "${diplomat}")
|
|
message(CONFIGURE_LOG "Downloading Diplomat...")
|
|
file(MAKE_DIRECTORY "${crates}")
|
|
execute_process(COMMAND ${CARGO} install --root "${crates}" diplomat-tool@0.17.0)
|
|
endif()
|