Skip to content
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

Compiler warnings can't be disabled when using FetchContent #1300

Open
nilsvu opened this issue Jul 31, 2024 · 1 comment
Open

Compiler warnings can't be disabled when using FetchContent #1300

nilsvu opened this issue Jul 31, 2024 · 1 comment

Comments

@nilsvu
Copy link

nilsvu commented Jul 31, 2024

I followed the instructions in the README to include yaml-cpp in my CMake project with FetchContent_Declare. When building the code, I get compiler warnings like those listed in #1208. This is not unexpected. However, I want to silence these compiler warnings since I can't do anything about them and they alert the users of my code. Since CMake version 3.25 this is possible with the SYSTEM option passed to FetchContent_Declare: https://cmake.org/cmake/help/latest/module/FetchContent.html#command:fetchcontent_declare
This option works for other external packages that I fetch, but it has no effect on yaml-cpp. I still get the compiler warnings even if I use the SYSTEM option. Can this be fixed?

@jbeder
Copy link
Owner

jbeder commented Jul 31, 2024

Not sure how - open to suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants