jsoncpp в системе установлен
$ ls /usr/lib/x86_64-linux-gnu/cmake/jsoncpp
jsoncppConfig.cmake jsoncppConfig-none.cmake
$ pkg-config --cflags --libs jsoncpp
-I/usr/include/jsoncpp -ljsoncpp
Пытаюсь найти
find_package(jsoncpp)
Как вычислить правильные имена для заголовочных файлов и бибилиотек?
message("=== Jsoncpp: "
"\n jsoncpp_FOUND = " ${jsoncpp_FOUND}
"\n jsoncpp_INCLUDE_DIRS = " ${jsoncpp_INCLUDE_DIRS}
"\n jsoncpp_INCLUDE_DIR = " ${jsoncpp_INCLUDE_DIR}
"\n jsoncpp_LIBRARIES = " ${jsoncpp_LIBRARIES}
"\n jsoncpp_LIBRARY = " ${jsoncpp_LIBRARY}
"\n jsoncpp_lib = " ${jsoncpp_lib})
=== Jsoncpp:
jsoncpp_FOUND = 1
jsoncpp_INCLUDE_DIRS =
jsoncpp_INCLUDE_DIR =
jsoncpp_LIBRARIES =
jsoncpp_LIBRARY =
jsoncpp_lib =
P.S. если самому установить переменные, то все работает, конечно же
set(jsoncpp_INCLUDE_DIR "/usr/include/jsoncpp")
set(jsoncpp_LIBRARY "jsoncpp")