Public bug reported:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial

$ dpkg -l|grep libjsoncpp
ii  libjsoncpp-dev:amd64                       1.7.2-1                          
             amd64        library for reading and writing JSON for C++ (devel 
files)
ii  libjsoncpp1:amd64                          1.7.2-1                          
             amd64        library for reading and writing JSON for C++

When try to use jsoncpp, the ${jsoncpp_INCLUDE_DIRS} and
${jsoncpp_LIBRARIES} fail to report.

CMakeLists.txt
----------------
cmake_minimum_required(VERSION 2.6.2)
project(jsoncpp_test)

find_package(jsoncpp REQUIRED)
message("FOUND CONFIG: ${jsoncpp_CONFIG}")
message("INCLUDE DIRS: ${jsoncpp_INCLUDE_DIRS}")
message("LIBRARIES: ${jsoncpp_LIBRARIES}")

The actual result is:
--------------------
FOUND CONFIG: /usr/lib/x86_64-linux-gnu/cmake/jsoncpp/jsoncppConfig.cmake
INCLUDE DIRS: 
LIBRARIES:

** Affects: libjsoncpp (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/1653635

Title:
  cmake unable to report INCLUDE_DIRS and LIBRARIES

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

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

Reply via email to