Skip to content

Q: How to disable googletest and benchmark? #4450

Closed
@totszwai

Description

@totszwai

Is there a way to just compile protobuf and not to deal with anything under third_party?
We have a build system that symlink pretty much link (yeah don't ask me why) everything into a build directory before building...

When running autogen.sh, it complains about the underlying modules (googletest and benchmark) is missing the m4 folder then just died there.

autoreconf -f -i -s
aclocal: couldn't open directory `m4': No such file or directory
autoreconf: aclocal failed with exit status: 1

I don't need googletest nor benchmark, how to disable them?

Activity

changed the title How to disable googletest and benchmark? Q: How to disable googletest and benchmark? on Mar 29, 2018
xfxyjwf

xfxyjwf commented on Apr 2, 2018

@xfxyjwf
Contributor

It can't be disabled when using autotools. Right now I think you have two options:

  1. Use cmake and do "cmake -Dprotobuf_BUILD_TESTS=OFF".
  2. Download a .tar.gz or .zip package from the release page. For example: https://github.com/google/protobuf/releases/download/v3.5.1/protobuf-all-3.5.1.tar.gz .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Q: How to disable googletest and benchmark? · Issue #4450 · protocolbuffers/protobuf