GithubHelp home page GithubHelp logo

Issue with rapidjson when building about vrs HOT 4 CLOSED

jmpfar avatar jmpfar commented on August 11, 2024
Issue with rapidjson when building

from vrs.

Comments (4)

jmpfar avatar jmpfar commented on August 11, 2024 1

Alright, I wasn't aware that cmake is supposed to import a library's CMakeLists.txt in find_package but I only recently started working with it so that makes perfect sense. If that's the case then this sounds like this is an issue in my specific environment

Feel free to close, in any case it might be helpful to anyone seeing the same error

from vrs.

georges-berenger avatar georges-berenger commented on August 11, 2024

EXTERNAL_DEPENDENCIES_DIR should always end up being set by this code , which is at the top of the cmake code. I'm not sure how it's not set for you, but you need to make sure to include that top cmake file, that's a requirement. The other cmake lists should not be accessed directly.

from vrs.

jmpfar avatar jmpfar commented on August 11, 2024

Hey, thanks for the reply!
So my flow was as mentioned here:

I compiled and installed the library locally, I then added find_package(vrslib REQUIRED) to my cmake file. That line failed with the above mentioned error. So reading your response, do you think I should have imported that CMakeLists.txt file manually because for some reason it wasn't included on its own?

from vrs.

georges-berenger avatar georges-berenger commented on August 11, 2024

The code I pointed to sets EXTERNAL_DEPENDENCIES_DIR if it's not set externally, which is an optional customization option given to the users of the library. You need to debug why it's not happening for you, because you should not get to the FindRapidjsonLib.cmake file without going through that code first.
I'm not sure I understand your question. The only CMakeLists.txt in the vrs project you should use directly is the top one, in the main folder.

from vrs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.