We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b06262 commit 02b00e8Copy full SHA for 02b00e8
docs/+current/modules/compiler/gcc.md
@@ -36,4 +36,18 @@ set(my_compile_options "${RSP_GCC_STRICT_COMPILE_OPTIONS}")
36
37
# Modify your preset...
38
list(REMOVE_ITEM my_compile_options "-Wswitch-default")
39
-```
+```
40
+
41
+## `gcc_version()`
42
43
+**Available Since: `v0.2.0`**
44
45
+Obtains the installed GCC version. The function accepts the following parameters:
46
47
+* `OUTPUT`: _Output variable to assign the result to._
48
49
+```cmake
50
+gcc_version(OUTPUT version)
51
52
+message("GCC: ${version}") # 14.2.0
53
0 commit comments