summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2022-08-31 16:02:11 -0400
committerKyleMiles <krm504@nyu.edu>2022-08-31 16:02:11 -0400
commit3252ebb4ae52285bc717f88e04da18985b561bb6 (patch)
treed322752c0ab38fe8c982d5cb612208e7f5bb2d89
parent8a66d88d33253bce6f1efc278abe805575e81c1d (diff)
Turn off building the Rust API in the API CMake by default
-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)