Skip to content

Commit 9145173

Browse files
author
Jan Lindström
authored
Merge pull request #1182 from grooverdan/10.4-friendlier-wsrep-message
cmake-wsrep: friendly error message about missing wsrep_api.h
2 parents be8709e + 4f5c653 commit 9145173

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

cmake/submodules.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ENDIF()
3131

3232
IF(update_result OR NOT EXISTS ${CMAKE_SOURCE_DIR}/libmariadb/CMakeLists.txt)
3333
MESSAGE(FATAL_ERROR "No MariaDB Connector/C! Run
34-
git submodule update --init
34+
git submodule update --init --recursive
3535
Then restart the build.
3636
")
3737
ENDIF()

cmake/wsrep.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ IF(WITH_WSREP)
3232
# Set the patch version
3333
SET(WSREP_PATCH_VERSION "22")
3434

35+
IF(NOT EXISTS "${CMAKE_SOURCE_DIR}/wsrep-lib/wsrep-API/v26/wsrep_api.h")
36+
MESSAGE(FATAL_ERROR "No MariaDB wsrep-API code! Run
37+
${GIT_EXECUTABLE} submodule update --init --recursive
38+
Then restart the build.
39+
")
40+
ENDIF()
3541
# Obtain wsrep API version
3642
FILE(STRINGS "${CMAKE_SOURCE_DIR}/wsrep-lib/wsrep-API/v26/wsrep_api.h" WSREP_API_VERSION
3743
LIMIT_COUNT 1 REGEX "WSREP_INTERFACE_VERSION")

0 commit comments

Comments
 (0)