Comments (6)
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.
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.
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.
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.
conan-io/conan#15946 has been merged it will be in the next Conan 2.3 release
from cmake-conan.
Related Issues (20)
- [develop2] Allow passing pathname to other conanfile.txt
- Question about mixing debug build with release dependencies HOT 2
- [question] Invalid: 'settings.compiler.runtime' value not defined HOT 21
- Different formatting of msvc runtime value conan_provider.cmake
- Installing only certain packages HOT 8
- [develop2] Question: How stable is the current state HOT 2
- tools.build:compiler_executables breaks build with Autotools and Xcode HOT 3
- [develop2] detect_compiler() detects invalid 'settings.compiler.version' for apple-clang
- [develop2] Can conan_provider.cmake work with add_subdirectory HOT 6
- find_program working when building from command line, but not when using the CLion Conan plugin HOT 11
- [bug] generated settings.yml missing Macos.version "14.2", causes build failures HOT 10
- [develop2, BUG] Unknown arguments specified in conan_provider.cmake:519 HOT 2
- Using "build-scripts" package via tool_requires() not working HOT 2
- [develop2] CMAKE_CONFIGURATION_TYPES with custom build types not getting dependencies added properly HOT 3
- ERROR: Invalid setting '6' is not a valid 'settings.compiler.version' value HOT 2
- 【conan install】conan_provider.cmake downloads packages from source because detect_host_profile generates compiler.cppstd=xx in the cmake-build-release/conan_host_profile file with the detect_host_profile method HOT 5
- cmake bootstrapping fails if not on PATH HOT 3
- Not working with conan editable mode HOT 5
- Update readme with more details HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmake-conan.