summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f7deff70..05d2a0c5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -85,7 +85,9 @@ function(bn_install_plugin target)
endif()
endfunction()
-add_subdirectory(rust)
+if(RUST_API)
+ add_subdirectory(rust)
+endif()
if(BN_API_BUILD_EXAMPLES)
add_subdirectory(examples)