[misc] change cmake to indicate debugable luagit when debug mode
@@ -7,6 +7,16 @@ if(NOT EXISTS ${LUAJIT_SRC_DIR})
execute_process(COMMAND git submodule update --init --force)
endif()
+set(LUAJIT_GIT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/src/luajit/.git)
+
+if(CMAKE_BUILD_TYPE MATCHES "Debug")
+ execute_process(COMMAND git submodule update)
+ execute_process(COMMAND git --git-dir=${LUAJIT_GIT_FILE} checkout origin/debugable)
+else()
+ execute_process(COMMAND git submodule update)
+ execute_process(COMMAND git --git-dir=${LUAJIT_GIT_FILE} checkout origin/master)
+endif()
+
set(LMDB_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/lmdb)
set(LMDB_BUILD_DIR ${LMDB_SRC_DIR}/libraries/liblmdb)
