Giter Site home page Giter Site logo

Comments (4)

l90lpa avatar l90lpa commented on July 20, 2024

Hello, I've just noticed the new SETTINGS option for conan_cmake_run(). Is it recommended to use this to set the particular compiler.libc++ setting? I'm asking because this will populate the _SETTINGS variable with two instances setting compiler.libcxx e.g. "-s compiler.libcxx=libstdc++ ... -s compiler.libcxx=libc++". Is it the intended behaviour of conan install to use the last value specified?

from cmake-conan.

memsharded avatar memsharded commented on July 20, 2024

Hi @l90lpa

Not, it is not intended to use the last value, I think cmake-conan should avoids its repetition, this might need fixing. Thanks for reporting it!

from cmake-conan.

memsharded avatar memsharded commented on July 20, 2024

I am having a look. What would be the "standard" CMake approach for defining the usage of libc++ in Linux-Clang? The idea of conan_cmake_settings is that it automatically extracts the settings from the current CMake configuration, so it would be great to know if such configuration exists for libc++.

from cmake-conan.

Artalus avatar Artalus commented on July 20, 2024

At first I was rather surprised that the wrapper doesn't look into Conan profile for compiler.libcxx value. Then I thought that the main problem with this approach would be - what if user wants to use some other profile than default?

Clearly specifying libcxx or profile name somewhere in CMakeLists.txt would be a bad move for anything that is intended to build outside of strictly set environment. Maybe conan.cmake should take into account the values of some other CMake variables, like conan-package-tools do with envvars?

In this case, if I call CMake from terminal, I could go cmake -DCMAKE_CONAN_LIBCXX=libc++ .., and when using CMake in Qt Creator with my predefined Kit I could also specify additional variables in the Kit itself.

from cmake-conan.

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.