-
Notifications
You must be signed in to change notification settings - Fork 76
check_configuration.cmake: enable correct language CXX #71
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
Conversation
27524b7 to
4311393
Compare
|
Which toolchain are you using? |
|
GCC on linux |
|
Can you provide instructions for replicating the issue? |
|
I only saw it in a CI build, and the same build works locally. I'm not sure where the difference comes from. The change fixes the CI build though, and given the instructions further down The alternative (and IMO better) way is to remove |
What makes you suggest it's incorrect? |
|
It checks for the language used for a given compilation unit, not whether a language is enabled. |
|
I can reproduce with cmake version 3.10.2, with this case: cmake version 3.22.2 does not produce an error. |
4311393 to
79082ce
Compare
|
@pablogs9 do you have any reason not to remove |
pablogs9
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM since C++ related warnings does not apply to the C codebase of this project. Please @Acuadros95 take a look also.
…n_compile_options
cmake version 3.10.2 fails with this error:
CMake Error at cmake/common/check_configuration.cmake:120 (target_compile_options):
Error evaluating generator expression:
$<COMPILE_LANGUAGE:CXX>
$<COMPILE_LANGUAGE:...> Unknown language.
version 3.22.2 does not produce this error.
Signed-off-by: Beat Küng <[email protected]>
79082ce to
5960775
Compare
|
LGTM |
I got this error in a CI build:
The same build works locally though.
Other projects are affected by this as well.