[Bug 969891] Re: cmake fails with current libgtest-dev 1.6.0-1ubuntu4

Timo Röhling 969891 at bugs.launchpad.net
Fri Jun 3 21:26:46 UTC 2022


** Changed in: cmake (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cmake in Ubuntu.
https://bugs.launchpad.net/bugs/969891

Title:
  cmake fails with current libgtest-dev 1.6.0-1ubuntu4

Status in cmake package in Ubuntu:
  Fix Released

Bug description:
  As libgtest 1.6.0-1ubuntu4 no longer has static libraries included,
  cmake with

  find_package(GTest REQUIRED)

  fails with the present cmake(-data) 2.8.7-0ubuntu 4.

  To work around this problem I commented out line 150 in
  /usr/share/cmake-2.8/Modules/FindGTest.cmake and used

  set(GTEST_DIR /usr/src/gtest)
  add_subdirectory(${GTEST_DIR} ${CMAKE_CURRENT_BINARY_DIR}/gtest EXCLUDE_FROM_ALL)
  link_directories(${CMAKE_CURRENT_BINARY_DIR}/gtest)

  I am not a cmake expert, so even though this works, it probably it is
  not a good solution.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: cmake-data 2.8.7-0ubuntu4 [modified: usr/share/cmake-2.8/Modules/FindGTest.cmake]
  ProcVersionSignature: Ubuntu 3.2.0-20.33-generic 3.2.12
  Uname: Linux 3.2.0-20-generic x86_64
  ApportVersion: 2.0-0ubuntu2
  Architecture: amd64
  Date: Sat Mar 31 11:13:51 2012
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120328)
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=en_US:en
   TERM=xterm
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: cmake
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/969891/+subscriptions




More information about the foundations-bugs mailing list