We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 573505f commit 4887096Copy full SHA for 4887096
docs/+current/modules/compiler/gcc.md
@@ -38,6 +38,28 @@ set(my_compile_options "${RSP_GCC_STRICT_COMPILE_OPTIONS}")
38
list(REMOVE_ITEM my_compile_options "-Wswitch-default")
39
```
40
41
+## `gcc_info()`
42
+
43
+**Available Since: `v0.3.0`**
44
45
+Obtains the path and version of the installed GCC version. The function accepts the following parameters:
46
47
+* `OUTPUT`: _Output variable to assign the result to._
48
49
+**Output**
50
51
+* `[OUTPUT]`: _Path to installed GCC tool._
52
+* `[OUTPUT]_VERSION`: _GCC version._
53
54
+**Example**
55
56
+```cmake
57
+gcc_info(OUTPUT gcc)
58
59
+message("GCC (path): ${gcc}") # /usr/bin/g++-14
60
+message("GCC (version): ${gcc_VERSION}") # 14.2.0
61
+```
62
63
## `gcc_version()`
64
65
**Available Since: `v0.2.0`**
0 commit comments