Public bug reported:

It is not possible to use libceres with cmake.

Using this minimal example:

CMakeLists.txt:
FIND_PACKAGE(Ceres REQUIRED)

Produces this error:
$ cmake -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles"
CMake Error at /usr/lib/cmake/ceres/CeresConfig.cmake:88 (message):
  Failed to find Ceres - Ceres install root: /usr/lib, determined from
  relative path from CeresConfig.cmake install location:
  /usr/lib/cmake/ceres, does not contain Ceres headers.  Either the install
  directory was deleted, or the install tree was only partially relocated
  outside of CMake after Ceres was built.
Call Stack (most recent call first):
  /usr/lib/cmake/ceres/CeresConfig.cmake:136 (ceres_report_not_found)
  CMakeLists.txt:1 (FIND_PACKAGE)


CMake Error at CMakeLists.txt:1 (FIND_PACKAGE):
  Found package configuration file:

    /usr/lib/cmake/ceres/CeresConfig.cmake

  but it set Ceres_FOUND to FALSE so package "Ceres" is considered to be NOT
  FOUND.


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.5)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/home/clins/repos/cerestest/CMakeFiles/CMakeOutput.log".

** Affects: ceres-solver (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  cmake config broken

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceres-solver/+bug/1678043/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to