open-source-parsers / open-source-parsers/jsoncpp

cmake error

Open
#1,357 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug build
Dominant language
C++
Stars
8.9k
Forks
2.7k
Avg merge
31m
Merged PRs (30d)
1

Description

[root@iZuf6gy6qwvkl8mkdltvefZ build]# cmake -DCMAKE_BUILD_TYPE=release -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" ..
-- JsonCpp Version: 1.9.5
CMake Error at src/lib_json/CMakeLists.txt:202 (install):
install TARGETS given unknown argument "OBJECTS".

-- Configuring incomplete, errors occurred!
See also "/usr/local/src/jsoncpp/build/CMakeFiles/CMakeOutput.log".

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported command with the Unix Makefiles generator and inspect src/lib_json/CMakeLists.txt around line 202, where CMake rejects the OBJECTS argument to install TARGETS. The work is done when configuration completes without this error and the reported build setup remains usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.