diff --git a/CMakeLists.txt b/CMakeLists.txt index af17bac..40c8345 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -237,12 +237,13 @@ 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() if(NOT SKIP_RUST) + message(INFO "Rust tools found at ${RUSTC}, ${CARGO}, ${RUST_LIBDIR}") ExternalProject_Add(avsrs DEPENDS libavs SOURCE_DIR "${CMAKE_SOURCE_DIR}"