Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use build dir build interfaces - Fix use with CMake FetchContent #1528

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

matthieugleg
Copy link
Contributor

This is an updated version of #1419
Fix the issue :

 Imported target "Jsoncpp_lib" includes non-existent path

    "build/_deps/jsoncpp-build/include/json"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

To reproduce, import jsoncpp like that :

FetchContent_Declare(
        jsoncpp
        GIT_REPOSITORY https://github.com/open-source-parsers/jsoncpp.git
        GIT_TAG 1.9.5
)
FetchContent_MakeAvailable(jsoncpp)

@baylesj baylesj merged commit f459022 into open-source-parsers:master Sep 10, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants