Skip to content

v1.1.0 fails with system googletest #2258

@jbeich

Description

@jbeich

Regressed by #2097. Affects downstream packaging where bundled libraries are discouraged e.g., on FreeBSD.

$ cmake -DAVIF_CODEC_AOM=SYSTEM -DAVIF_LIBYUV=OFF -DAVIF_GTEST=SYSTEM -DAVIF_BUILD_TESTS=ON -B /tmp/libavif_build
-- libavif: Enabling warnings for Clang
-- libavif: Codec enabled: aom (encode/decode)
-- The CXX compiler identification is Clang 18.1.6
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: /usr/lib/libz.so (found version "1.3.1")
-- Found PNG: /usr/local/lib/libpng.so (found suitable version "1.6.43", minimum required is "1.6.32")
-- Found JPEG: /usr/local/lib/libjpeg.so (found version "80")
CMake Error at CMakeLists.txt:202 (find_package):
  By not providing "FindGoogletest.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Googletest", but CMake did not find one.

  Could not find a package configuration file provided by "Googletest" with
  any of the following names:

    GoogletestConfig.cmake
    googletest-config.cmake

  Add the installation prefix of "Googletest" to CMAKE_PREFIX_PATH or set
  "Googletest_DIR" to a directory containing one of the above files.  If
  "Googletest" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  tests/CMakeLists.txt:90 (check_avif_option)


-- Configuring incomplete, errors occurred!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions