-
Notifications
You must be signed in to change notification settings - Fork 990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] CONAN_CMAKE_SYSTEM_PROCESSOR
is not applied
#9736
Comments
I dug a bit deeper into conan to see where this invalid setting is coming from and I think I found what is described here to be the culprit (emphasis mine):
conan/conan/tools/cmake/toolchain.py Lines 630 to 638 in 14d01da
With conan/conan/tools/cmake/toolchain.py Line 581 in 14d01da
and conan/conan/tools/cmake/toolchain.py Lines 608 to 610 in 14d01da
so arch (host) is taken.
conan/conans/client/build/cmake_flags.py Line 226 in a620e5b
|
Closing as outdated, referring to legacy generators removed in 2.0 |
The
CONAN_CMAKE_SYSTEM_PROCESSOR
environment variable is not applied to a cmake build,instead
CMAKE_SYSTEM_PROCESSOR
is set toself.settings.arch
.Reading the documentation about cmake related environment variables, it seems to me that by settings the
CONAN_CMAKE_SYSTEM_PROCESSOR
, the cmake variableCMAKE_SYSTEM_PROCESSOR
will be set automatically.The following script reproduces my problem/question:
The output of the cmake configure step is:
Where I expect it to contain
awesomecpu
twice.The Android NDK requires setting
CMAKE_SYSTEM_PROCESSOR
to a known and valid architecture.I added
CONAN_CMAKE_SYSTEM_PROCESSOR
to theandroid-ndk
recipe in conan-io/conan-center-index#7474,but it looks to me that conan is missing functionality here.
The text was updated successfully, but these errors were encountered: