Skip to content

Commit

Permalink
Make RocksDB run git submodule init and update if rocksdb is not fetched
Browse files Browse the repository at this point in the history
  • Loading branch information
cvicentiu committed Feb 7, 2017
1 parent 5875633 commit 884fd9a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion storage/rocksdb/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# TODO: Copyrights

IF(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/rocksdb/Makefile AND GIT_EXECUTABLE)
EXECUTE_PROCESS(COMMAND "${GIT_EXECUTABLE}" submodule init
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
EXECUTE_PROCESS(COMMAND "${GIT_EXECUTABLE}" submodule update
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
ENDIF()

IF (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/rocksdb/Makefile")
MESSAGE(SEND_ERROR "Missing Makefile in rocksdb directory. Try \"git submodule update\".")
Expand Down

0 comments on commit 884fd9a

Please sign in to comment.