I want to silence warnings from slint_generated_*.cpp files and files in _deps folder. To solve the problem, I did the following.
- Provide
SYSTEM argument in FetchContent_Declare() to silence warnings from files in _deps folder.
- To silence warnings from generated file in
CMakeLists.txt:
set_source_files_properties("slint_generated_ui_1.cpp" PROPERTIES COMPILE_OPTIONS "-w")
My compiler flags are declared in CMakePresets.json. Is there a better way to silence warnings?
I want to silence warnings from
slint_generated_*.cppfiles and files in_depsfolder. To solve the problem, I did the following.SYSTEMargument inFetchContent_Declare()to silence warnings from files in_depsfolder.CMakeLists.txt:My compiler flags are declared in
CMakePresets.json. Is there a better way to silence warnings?