Skip to content

Commit

Permalink
RUST WIN CI TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
grandchild committed Jun 29, 2024
1 parent 7d2dd9c commit d13f417
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit d13f417

Please sign in to comment.