mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
auto-clone C/C, if possible
This commit is contained in:
@ -115,6 +115,11 @@ FOREACH(_base
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
ENDFOREACH()
|
ENDFOREACH()
|
||||||
|
|
||||||
|
FOREACH(tool gtar tar git)
|
||||||
|
STRING(TOUPPER ${tool} TOOL)
|
||||||
|
FIND_PROGRAM(${TOOL}_EXECUTABLE ${tool} DOC "path to the executable")
|
||||||
|
MARK_AS_ADVANCED(${TOOL}_EXECUTABLE)
|
||||||
|
ENDFOREACH()
|
||||||
|
|
||||||
# Following autotools tradition, add preprocessor definitions
|
# Following autotools tradition, add preprocessor definitions
|
||||||
# specified in environment variable CPPFLAGS
|
# specified in environment variable CPPFLAGS
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
IF(NOT EXISTS ${CMAKE_SOURCE_DIR}/libmariadb/CMakeLists.txt AND GIT_EXECUTABLE)
|
||||||
|
EXECUTE_PROCESS(COMMAND "${GIT_EXECUTABLE}" submodule init
|
||||||
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
|
||||||
|
EXECUTE_PROCESS(COMMAND "${GIT_EXECUTABLE}" submodule update
|
||||||
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
|
||||||
|
ENDIF()
|
||||||
|
IF(NOT EXISTS ${CMAKE_SOURCE_DIR}/libmariadb/CMakeLists.txt)
|
||||||
|
MESSAGE(FATAL_ERROR "No MariaDB Connector/C! Run
|
||||||
|
git submodule init
|
||||||
|
git submodule update
|
||||||
|
Then restart the build.
|
||||||
|
")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
SET(OPT CONC_)
|
SET(OPT CONC_)
|
||||||
|
|
||||||
IF (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
IF (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
|
@ -320,12 +320,6 @@ IF(WIN32 OR HAVE_DLOPEN AND NOT DISABLE_SHARED)
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
FOREACH(tool gtar tar git)
|
|
||||||
STRING(TOUPPER ${tool} TOOL)
|
|
||||||
FIND_PROGRAM(${TOOL}_EXECUTABLE ${tool} DOC "path to the executable")
|
|
||||||
MARK_AS_ADVANCED(${TOOL}_EXECUTABLE)
|
|
||||||
ENDFOREACH()
|
|
||||||
|
|
||||||
CONFIGURE_FILE(
|
CONFIGURE_FILE(
|
||||||
${CMAKE_SOURCE_DIR}/cmake/make_dist.cmake.in
|
${CMAKE_SOURCE_DIR}/cmake/make_dist.cmake.in
|
||||||
${CMAKE_BINARY_DIR}/make_dist.cmake @ONLY)
|
${CMAKE_BINARY_DIR}/make_dist.cmake @ONLY)
|
||||||
|
Reference in New Issue
Block a user