allow local CMAKE flags in eosio_build.sh
cc32d9 opened this issue · comments
PR #5026 allows adding new plugins via CMAKE flags. Now the autobuild script needs a small modification:
diff --git a/eosio_build.sh b/eosio_build.sh
index 59c76b0..9290ea3 100755
--- a/eosio_build.sh
+++ b/eosio_build.sh
@@ -258,7 +258,7 @@
-DCMAKE_C_COMPILER="${C_COMPILER}" -DWASM_ROOT="${WASM_ROOT}" -DCORE_SYMBOL_NAME="${CORE_SYMBOL_NAME}" \
-DOPENSSL_ROOT_DIR="${OPENSSL_ROOT_DIR}" -DBUILD_MONGO_DB_PLUGIN=true \
-DENABLE_COVERAGE_TESTING="${ENABLE_COVERAGE_TESTING}" -DBUILD_DOXYGEN="${DOXYGEN}" \
- -DCMAKE_INSTALL_PREFIX="/usr/local/eosio" "${SOURCE_DIR}"
+ -DCMAKE_INSTALL_PREFIX="/usr/local/eosio" ${LOCAL_CMAKE_FLAGS} "${SOURCE_DIR}"
then
printf "\\n\\t>>>>>>>>>>>>>>>>>>>> CMAKE building EOSIO has exited with the above error.\\n\\n"
exit -1
This will allow adding plugins with a shell variable LOCAL_CMAKE_FLAGS.
great idea