Skip to content

Installing on Ubuntu 16.04 #1703

Description

@wiggitamoo
  • Describe what you want to achieve.

I would like to install the nlohmann_json v3.7.0 and use it in a c++ project.

  • Describe what you tried.
  1. Download the zip file to my Ubuntu 16.04 machine.
  2. Unzip the package
  3. mkdir build
  4. cd build
  5. cmake ..
  6. make
  7. make install

In my CMakeLists.txt i added:

find_package(nlohmann_json 3.7.0 REQUIRED)
target_link_libraries(configuration PRIVATE nlohmann_json::nlohmann_json)
  • Describe which system (OS, compiler) you are using.

Ubuntu 16.04
cmake version 3.5.2
cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_STANDARD 17)

  • Describe which version of the library you are using (release version, develop branch).

nlohmann_json v3.7.0

  • Describe the problem

When I try to build I get the following error:

  Could not find a configuration file for package "nlohmann_json" that is
  compatible with requested version "3.7.0".

  The following configuration files were considered but not accepted:

    /usr/local/lib/cmake/nlohmann_json/nlohmann_jsonConfig.cmake, version: 3.7.0 (64bit)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: questionstate: stalethe issue has not been updated in a while and will be closed automatically soon unless it is updated

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions