1
0
mirror of synced 2024-12-22 12:40:00 +01:00

Minor fix for FeatureSummary

This commit is contained in:
Henry Fredrick Schreiner 2018-04-12 10:28:14 +02:00
parent 039db8f484
commit 3245383a85

View File

@ -105,9 +105,10 @@ set_package_properties(OpenMP PROPERTIES
You can also set the `TYPE` of a package to `RUNTIME`, `OPTIONAL`, `RECOMMENDED`, or `REQUIRED`; you can't, however, lower the type of a package; if you have already added a `REQUIRED` package through «command:`find_package`» based on an option, you'll see it listed as `REQUIRED`.
And, you can mark any options as part of the feature summary:
And, you can mark any options as part of the feature summary. If you choose the same name as a package, the two interact with each other.
```cmake
add_feature_info(WITH_OPENMP OpenMP_CXX_FOUND "OpenMP (Thread safe FCNs only)")
```
Then, you can print out the summary of features, either to the screen or a log file: