File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
docs/+current/modules/compiler Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -23,4 +23,17 @@ include("rsp/compiler")
2323add_compile_options(${RSP_GCC_STRICT_COMPILE_OPTIONS})
2424```
2525
26- For additional information, please review the ` RSP_GCC_STRICT_COMPILE_OPTIONS ` list, in the source code.
26+ For additional information, please review the ` RSP_GCC_STRICT_COMPILE_OPTIONS ` list, in the source code.
27+
28+ ### Customize
29+
30+ If you need to customise a preset, create a copy of the desired preset, and use cmake's
31+ [ list] ( https://cmake.org/cmake/help/latest/command/list.html#list ) operations to remove or append options.
32+
33+ ``` cmake
34+ # Copy provided preset into new variable
35+ set(my_compile_options "${RSP_GCC_STRICT_COMPILE_OPTIONS}")
36+
37+ # Modify your preset...
38+ list(REMOVE_ITEM my_compile_options "-Wswitch-default")
39+ ```
You can’t perform that action at this time.
0 commit comments