summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-09 00:40:36 +0800
committerruki <[email protected]>2020-09-09 00:40:36 +0800
commit95981ed19ba69b2367db5a0e33e2ed80ba811882 (patch)
treef24aa336c63740341c9034283d8056dc80578d97
parentdf0fa920c555f4ffd91558f6b4eb441ce3847e6b (diff)
add values.fortran.moduledir
-rw-r--r--xmake/rules/fortran/xmake.lua2
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})