diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2018-04-02 14:46:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-02 14:46:58 -0700 |
commit | 40d6eca832641a3b2421742b5fd7aec3ad659396 (patch) | |
tree | 61c1630c64e559a5bfd770876d161c9840ae9a49 | |
parent | 7f92711085374322f416745e00e69b63c4fcbbf2 (diff) | |
parent | 8f88a507ee416837371f90ff074b87a8a135c6e9 (diff) | |
download | protobuf-40d6eca832641a3b2421742b5fd7aec3ad659396.tar.gz protobuf-40d6eca832641a3b2421742b5fd7aec3ad659396.tar.bz2 protobuf-40d6eca832641a3b2421742b5fd7aec3ad659396.zip |
Merge pull request #4467 from xfxyjwf/error
Improve error message when googletest is missing.
-rw-r--r-- | cmake/tests.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/tests.cmake b/cmake/tests.cmake index d7522759..ec790e33 100644 --- a/cmake/tests.cmake +++ b/cmake/tests.cmake @@ -1,5 +1,10 @@ if (NOT EXISTS "${PROJECT_SOURCE_DIR}/../third_party/googletest/CMakeLists.txt") - message(FATAL_ERROR "Cannot find third_party/googletest directory.") + message(FATAL_ERROR + "Cannot find third_party/googletest directory that's needed to " + "build tests. If you use git, make sure you have cloned submodules:\n" + " git submodule update --init --recursive\n" + "If instead you want to skip tests, run cmake with:\n" + " cmake -Dprotobuf_BUILD_TESTS=OFF\n") endif() option(protobuf_ABSOLUTE_TEST_PLUGIN_PATH |