Create a feature collection from a single feature_config_t The feature becomes the base configuration for all OS/compiler combinations
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(feature_config_t), | intent(in) | :: | self |
Feature configuration to convert |
type(feature_collection_t) function collection_from_feature(self) result(collection) !> Feature configuration to convert class(feature_config_t), intent(in) :: self ! Copy the feature into the base configuration collection%base = self ! Set platform to all OS and all compilers for the base collection%base%platform%os_type = OS_ALL collection%base%platform%compiler = id_all ! Copy the name if available if (allocated(self%name)) collection%base%name = self%name ! No variants initially - just the base configuration ! (variants can be added later if needed) end function collection_from_feature