-
Notifications
You must be signed in to change notification settings - Fork 991
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
[question] Lmod CPATH vs Conan -isystem #17515
Comments
Cross-reference easybuilders/easybuild-framework#3331 |
Hi @nextsilicon-itay-bookstein Thanks for your question.
Conan does not really inject anything, it doesn't even tell CMake via the generator code what to do. The
Basically none. Conan does not read, manage, define or do anything at all with the But this doesn't seem connected to the issues you are seeing, it seems that you are relying on the CMake generators ( |
I am relying on the CMake generators, yes. The fact that Lmod/easybuild injects the
|
What is your question?
Hi!
I'm using Lmod / EasyBuild, and it appears to provide include directories via the
CPATH
environment variable. According to the GCC docs this is equivalent to injecting-I
arguments.Conan, on the other hand, ends up injecting
-isystem
arguments on the command-line (at least via the CMake generator).When I build
grpc
, which depends onopenssl
, if the OpenSSL Lmod module is loaded (and therefore present onCPATH
), its includes 'win out' and cause thegrpc
build to not use the correct headers provided by Conan. This is because-I
'wins' over-isystem
. When there's a version mismatch e.g. Lmod OpenSSL/1.1 vs Conan OpenSSL/3.3.2, I get link errors as a result. (Mercifully, this is much better than ODR violations... :) )From what I see in the above GCC docs, the other Environment Variables inject
-isystem
and not-I
. This is a bit weird to me - why couple the 'language independent' environment variable to extra behavior like-I
and not-isystem
? I realize this is a question for GCC... but I'm not sure what to do here.What's the expectation of Conan's behavior with respect to the presence of CPATH?
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: