Public bug reported: 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) ** Affects: cmake (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug precise -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/969891 Title: cmake fails with current libgtest-dev 1.6.0-1ubuntu4 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/969891/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs