Giter Site home page Giter Site logo

Comments (6)

memsharded avatar memsharded commented on July 21, 2024

Hi @f-scholer

Thanks for your report.
It seems that the missing bit in cmake-conan would be the definition of rc compiler, but I am confused that you tried to specify it, and it didn't work. Was the output error exactly the same when adding rc to compiler_executables?

from cmake-conan.

memsharded avatar memsharded commented on July 21, 2024

Ok, I just realized. The openssl recipe uses the AutotoolsToolchain that defines the compiler mapping as: compilers_mapping = {"c": "CC", "cpp": "CXX", "cuda": "NVCC", "fortran": "FC"}

In other words, it is not prepared for cross-compiling from Linux -> Windows and defining the RC compiler.

So the issue needs to be addressed in both places, opening another ticket in the Conan client

from cmake-conan.

memsharded avatar memsharded commented on July 21, 2024

In the meantime, you can define a profile with just the [buildenv] section, and pass it to your build as defined in the readme -DCONAN_HOST_PROFILE="default;custom"

from cmake-conan.

f-scholer avatar f-scholer commented on July 21, 2024

Thanks for the quick action and suggestion. That works.

I had modified conan_provider.cmake to write the buildenv entries:
macro(append_buildenv_configuration)
if(CMAKE_C_COMPILER)
string(APPEND PROFILE "CC=${CMAKE_C_COMPILER}\n")
endif()
if(CMAKE_CXX_COMPILER)
string(APPEND PROFILE "CXX=${CMAKE_CXX_COMPILER}\n")
endif()
if(CMAKE_RC_COMPILER)
string(APPEND PROFILE "RC=${CMAKE_RC_COMPILER}\n")
endif()
endmacro()
...
string(APPEND PROFILE "[buildenv]\n")

propagate compilers

append_buildenv_configuration()

from cmake-conan.

memsharded avatar memsharded commented on July 21, 2024

conan-io/conan#15946 has been merged it will be in the next Conan 2.3 release

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.