Skip to content

Commit

Permalink
Allow strings and lists of strings for preprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
awvwgk authored Oct 16, 2022
1 parent 7a386d2 commit cd5ce9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fpm/metadata/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,13 @@ class Preprocess(BaseModel):
Preprocessing directives for the project.
"""

macros: List[str] = []
macros: Union[str, List[str]] = []
"""Preprocessor macros e.g. ['HAVE_MPI', 'VALUE=1', 'VERSION={version}']"""

directories: List[str] = []
directories: Union[str, List[str]] = []
"""Include directories"""

suffixes: List[str] = []
suffixes: Union[str, List[str]]= []
"""Suffixes the preprocessor should run on"""


Expand Down

0 comments on commit cd5ce9d

Please sign in to comment.