Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Test for build result for libfor and rocksdb builds.

Kishore Nallan49a6d77b7eb6
diff --git a/cmake/For.cmake b/cmake/For.cmake
index 6fcb215e..2be285cc 100644
--- a/cmake/For.cmake
+++ b/cmake/For.cmake
@@ -16,5 +16,9 @@ endif()
if(NOT EXISTS ${DEP_ROOT_DIR}/${FOR_NAME}/libfor.a)
message("Building libfor locally...")
- execute_process(COMMAND make WORKING_DIRECTORY ${DEP_ROOT_DIR}/${FOR_NAME}/)
+ execute_process(COMMAND make WORKING_DIRECTORY ${DEP_ROOT_DIR}/${FOR_NAME}/
+ RESULT_VARIABLE FOR_BUILD)
+ if(NOT FOR_BUILD EQUAL 0)
+ message(FATAL_ERROR "${FOR_NAME} build failed!")
+ endif()
endif()
diff --git a/cmake/RocksDB.cmake b/cmake/RocksDB.cmake
index d4e6d5ed..53e31f1f 100644
--- a/cmake/RocksDB.cmake
+++ b/cmake/RocksDB.cmake
@@ -16,5 +16,9 @@ endif()
if(NOT EXISTS ${DEP_ROOT_DIR}/${ROCKSDB_NAME}/librocksdb.so)
message("Building ${ROCKSDB_NAME} locally...")
- execute_process(COMMAND make "shared_lib" WORKING_DIRECTORY ${DEP_ROOT_DIR}/${ROCKSDB_NAME}/)
+ execute_process(COMMAND make "shared_lib" WORKING_DIRECTORY ${DEP_ROOT_DIR}/${ROCKSDB_NAME}/
+ RESULT_VARIABLE ROCKSDB_BUILD)
+ if(NOT ROCKSDB_BUILD EQUAL 0)
+ message(FATAL_ERROR "${ROCKSDB_NAME} build failed!")
+ endif()
endif()
\ No newline at end of file