From 9d1af51f5cc47a19c13d5e51120bc8987c5a82a1 Mon Sep 17 00:00:00 2001 From: LKedward Date: Fri, 19 Mar 2021 15:42:46 +0000 Subject: Update: manifest reference on include-dir Add note about non-support for external mod files --- manifest-reference.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/manifest-reference.md b/manifest-reference.md index 97b415d..d8c86ab 100644 --- a/manifest-reference.md +++ b/manifest-reference.md @@ -199,7 +199,14 @@ Paths for the source and include directories are given relative to the project r source-dir = "lib" include-dir = "inc" ``` + +#### Include directory + +> Supported in Fortran fpm only + +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. *include-dir* can contain one or more directories, where multiple directories are specified using a list of strings. +Include directories from all project dependencies are passed to the compiler using the appropriate compiler flag. *Example:* @@ -208,6 +215,8 @@ include-dir = "inc" include-dir = ["include","third_party/include"] ``` +> *include-dir* does not currently allow using pre-built module `.mod` files + #### Custom build script > Supported in Bootstrap fpm only -- cgit v1.2.3