Skip to content

CMake: Fix RapidJSON target for non-MPI builds - #7795

Open
Growl1234 wants to merge 1 commit into
deepmodeling:developfrom
Growl1234:cmake-rapidjson
Open

CMake: Fix RapidJSON target for non-MPI builds#7795
Growl1234 wants to merge 1 commit into
deepmodeling:developfrom
Growl1234:cmake-rapidjson

Conversation

@Growl1234

Copy link
Copy Markdown

The target json_output was created only when both RapidJSON and MPI were enabled, while the executable links against json_output whenever ENABLE_RAPIDJSON=ON. As a result, non-MPI builds could treat json_output as a plain library name and fail at link time with:

/usr/bin/ld: cannot find -ljson_output

However, the MPI requirement is only relevant to the tests under module_json; the json_output target itself already handles non-MPI builds correctly.

Therefore, this PR removes the redundant MPI guard from the parent CMake logic.

Copilot AI lite review requested due to automatic review settings August 9, 2026 04:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@mohanchen mohanchen added the Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS label Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants