diff --git a/CMakeLists.txt b/CMakeLists.txt index af17bac..b155f17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -237,11 +237,12 @@ else() OUTPUT_VARIABLE RUST_LIBDIR OUTPUT_STRIP_TRAILING_WHITESPACE ) - if(NOT IS_DIRECTORY ${RUST_LIBDIR}) + if(NOT ${RUST_LIBDIR} OR NOT IS_DIRECTORY ${RUST_LIBDIR}) message(WARNING "Rust toolchain for \"${RUST_TARGET}\" not found. Rust code skipped.") set(SKIP_RUST ON) endif() endif() +message(INFO "Rust tools found at ${RUSTC}, ${CARGO}, ${RUST_LIBDIR}") if(NOT SKIP_RUST) ExternalProject_Add(avsrs DEPENDS libavs