Skip to content

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

New issue

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

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

Already on GitHub? # to your account

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)

matthieugleg and others added 2 commits January 31, 2024 16:21
@baylesj baylesj merged commit f459022 into open-source-parsers:master Sep 10, 2024
10 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants