diff options
author | Daniel Black <daniel@linux.ibm.com> | 2019-02-13 11:31:55 +1100 |
---|---|---|
committer | Daniel Black <daniel@linux.ibm.com> | 2019-02-13 11:36:03 +1100 |
commit | 4f5c65367afaa1a633a0fee8754f24a944c681b5 (patch) | |
tree | f0d9a35fc9da994227a1bfa5bd71f2481df3f452 /cmake/submodules.cmake | |
parent | 4d5f85a3ec59b4a417da39a229fbb58e79c32029 (diff) | |
download | mariadb-git-4f5c65367afaa1a633a0fee8754f24a944c681b5.tar.gz |
cmake-wsrep: friendly error message about missing wsrep_api.h
Without this commit the error message is:
$ cmake . -DWITH_WSREP=ON
-- Running cmake version 3.12.1
-- MariaDB 10.4.3
CMake Error at cmake/wsrep.cmake:36 (FILE):
FILE STRINGS file
".../mariadb-server-10.4/wsrep-lib/wsrep-API/v26/wsrep_api.h"
cannot be read.
Call Stack (most recent call first):
CMakeLists.txt:147 (INCLUDE)
Having 'git config cmake.update-submodules yes' nicely updates the
build without error.
$ cmake . -DWITH_WSREP=ON
-- Running cmake version 3.12.1
-- MariaDB 10.4.3
Submodule path 'wsrep-lib': checked out 'e7d72ae7f6a6995a21d743389426a963429a1fff'
Submodule path 'wsrep-lib/wsrep-API/v26': checked out '75a5f452f2ba07b0f4a3a9a94825fccc71b27398'
Diffstat (limited to 'cmake/submodules.cmake')
-rw-r--r-- | cmake/submodules.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/submodules.cmake b/cmake/submodules.cmake index c2a415c6063..9f04c26e8d6 100644 --- a/cmake/submodules.cmake +++ b/cmake/submodules.cmake @@ -31,7 +31,7 @@ ENDIF() IF(update_result OR NOT EXISTS ${CMAKE_SOURCE_DIR}/libmariadb/CMakeLists.txt) MESSAGE(FATAL_ERROR "No MariaDB Connector/C! Run - git submodule update --init + git submodule update --init --recursive Then restart the build. ") ENDIF() |