diff options
| author | William A. Kennington III <wak@google.com> | 2018-06-29 16:21:17 -0700 |
|---|---|---|
| committer | William A. Kennington III <wak@google.com> | 2018-06-29 16:24:25 -0700 |
| commit | 40c2279e10231cbda0a7ac261e6270f9b223c368 (patch) | |
| tree | a22b925dc44e070df7bdcf0de97c8ab21b0362ba | |
| parent | fce038ad5ac9f458b03d55b441253a9c05dadc3e (diff) | |
| download | sdbusplus-40c2279e10231cbda0a7ac261e6270f9b223c368.tar.gz sdbusplus-40c2279e10231cbda0a7ac261e6270f9b223c368.zip | |
configure: Fix googletest depedence
b4b3247afc020843ebea278bf3c4e1cbebc54968 accidentally added a hard
dependency on googletest. The behavior of PKG_CHECK_MODULES is to fail
if the package is not found if no [action-if-not-found] is provided.
This change provides a no-op [action-if-not-found] so that autodetection
does not fail if not required.
Tested:
Ran through the unit test suite. Ran through the openbmc build
process without the googletest dependency to make sure it builds
now.
Change-Id: I81492833cc88b269a6d9ac1cb55b95da1975d40b
Signed-off-by: William A. Kennington III <wak@google.com>
| -rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 753d04d..217e200 100644 --- a/configure.ac +++ b/configure.ac @@ -79,7 +79,7 @@ AS_IF([test "x$enable_tests" != "xno"], [ # Check/set gtest specific functions. AS_IF([test "x$enable_tests" != "xno"], [ - PKG_CHECK_MODULES([GTEST], [gtest]) + PKG_CHECK_MODULES([GTEST], [gtest], [], [true]) AX_SAVE_FLAGS_WITH_PREFIX(OLD, [CPPFLAGS]) AX_APPEND_COMPILE_FLAGS([$GTEST_CFLAGS], [CPPFLAGS]) |

