Skip to content

Commit 9d1af51

Browse files
committed
Update: manifest reference on include-dir
Add note about non-support for external mod files
1 parent 57712f3 commit 9d1af51

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

manifest-reference.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,14 @@ Paths for the source and include directories are given relative to the project r
199199
source-dir = "lib"
200200
include-dir = "inc"
201201
```
202+
203+
#### Include directory
204+
205+
> Supported in Fortran fpm only
206+
207+
Projects which use the Fortran `include` statement or C preprocessor `#include` statement, can use the *include-dir* key to specify search directories for the included files.
202208
*include-dir* can contain one or more directories, where multiple directories are specified using a list of strings.
209+
Include directories from all project dependencies are passed to the compiler using the appropriate compiler flag.
203210

204211
*Example:*
205212

@@ -208,6 +215,8 @@ include-dir = "inc"
208215
include-dir = ["include","third_party/include"]
209216
```
210217

218+
> *include-dir* does not currently allow using pre-built module `.mod` files
219+
211220
#### Custom build script
212221

213222
> Supported in Bootstrap fpm only

0 commit comments

Comments
 (0)