kpeeters / cadabra2

A field-theory motivated approach to computer algebra.
https://cadabra.science/
GNU General Public License v3.0
228 stars 37 forks source link

ENABLE_SYSTEM_JSONCPP=ON is broken: jsoncpp doesn't provide cmake scripts #130

Closed yurivict closed 5 years ago

yurivict commented 5 years ago
-- Linking against system-provided jsoncpp
CMake Error at client_server/CMakeLists.txt:24 (find_package):
  By not providing "Findjsoncpp.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "jsoncpp", but
  CMake did not find one.

  Could not find a package configuration file provided by "jsoncpp" with any
  of the following names:

    jsoncppConfig.cmake
    jsoncpp-config.cmake

  Add the installation prefix of "jsoncpp" to CMAKE_PREFIX_PATH or set
  "jsoncpp_DIR" to a directory containing one of the above files.  If
  "jsoncpp" provides a separate development package or SDK, be sure it has
  been installed.

You need to seatch using pkg-config.

kpeeters commented 5 years ago

Checkout the last version from master, it has a Findjsoncpp.cmake inside cmake/modules.

yurivict commented 5 years ago

The latest rev. d801e8159b breaks the same way.

kpeeters commented 5 years ago

Hmm, my cmake seems to be happy with the 'jsoncpp' in the cmakelists, but yours apparently isn't. Have renamed to 'JSONCPP', should work now.

yurivict commented 5 years ago

Now the problem is gone, thanks!