summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-07-08 00:56:10 +0800
committerruki <[email protected]>2020-07-07 23:37:01 +0800
commitc8bb0d3edb89d1ca0d2f4615b949eab952421478 (patch)
tree401050787a8b4d735aa2948574bbd7a2a5534a97
parent181e2b840d870af5e79e0d7d5fc733f612c69a16 (diff)
improve fortran module
-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 41ff95ac5..6f91924d6 100644
--- a/xmake/rules/fortran/xmake.lua
+++ b/xmake/rules/fortran/xmake.lua
@@ -24,7 +24,7 @@ rule("fortran.build.modules")
local modulesdir = path.join(target:objectdir(), ".modules")
os.mkdir(modulesdir)
target:add("fcflags", "-J" .. modulesdir)
- target:add("includedirs", modulesdir)
+ target:add("includedirs", modulesdir, {public = true})
end)
-- define rule: fortran.build