diff options
| author | ruki <[email protected]> | 2020-09-09 00:40:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-09-09 00:40:36 +0800 |
| commit | 95981ed19ba69b2367db5a0e33e2ed80ba811882 (patch) | |
| tree | f24aa336c63740341c9034283d8056dc80578d97 | |
| parent | df0fa920c555f4ffd91558f6b4eb441ce3847e6b (diff) | |
add values.fortran.moduledir
| -rw-r--r-- | xmake/rules/fortran/xmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/fortran/xmake.lua b/xmake/rules/fortran/xmake.lua index 1e40b2c71..28ee7ddea 100644 --- a/xmake/rules/fortran/xmake.lua +++ b/xmake/rules/fortran/xmake.lua @@ -21,7 +21,7 @@ -- define rule: fortran.build.modules rule("fortran.build.modules") before_build(function (target) - local modulesdir = path.join(target:objectdir(), ".modules") + local modulesdir = target:values("fortran.moduledir") or path.join(target:objectdir(), ".modules") os.mkdir(modulesdir) target:add("fcflags", "-J" .. modulesdir) target:add("includedirs", modulesdir, {public = true}) |
