Giter Club home page Giter Club logo

Comments (6)

PatWie avatar PatWie commented on June 13, 2024
    mkdir build
    cd build
    cmake ..
    make all

Is correct, you need to call cmake inside the build-dir. No sudo, but everything in the correct directory.

from cppnumericalsolvers.

AlexanderFabisch avatar AlexanderFabisch commented on June 13, 2024

Yes, I did that. I corrected the bug report. But it does not copy the header files to /usr/local/include. Apart from that some of the cppoptlib headers use gtest. Is this intended? I have to link the library to compile any code that uses cppoptlib.

from cppnumericalsolvers.

PatWie avatar PatWie commented on June 13, 2024

Ah. Ok. It is not intended to copy the header files there to usr/include, yet. For other projects simply add the include path to the solver directory.

That cmake-install is definetely a bug. It should not be there. In general there should not be a dependency to gtest outside the verify.cpp file. I will look at that.

Do not forget to explicitly use the release mode (see other issue).

from cppnumericalsolvers.

AlexanderFabisch avatar AlexanderFabisch commented on June 13, 2024

Thanks.

Are there any plans to make it possible to install the library in the system? I think we only would have to

  • add something like install(DIRECTORY include/... DESTINATION include/...)
  • install a config for find_package and/or pkg-config like in this library
  • get rid of the gtest dependency by default

from cppnumericalsolvers.

PatWie avatar PatWie commented on June 13, 2024

Getting rid of "gtest" is my goal. In my opinion it is not the best solution currently to install it in the system. This would prevent a "git pull" update.

from cppnumericalsolvers.

AlexanderFabisch avatar AlexanderFabisch commented on June 13, 2024

Well, that would still be possible. You don't have to call make install.

from cppnumericalsolvers.

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.