We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c61c0f0 commit 723ec3eCopy full SHA for 723ec3e
xmake/scripts/base/project.lua
@@ -50,14 +50,14 @@ function project._makeconf_for_target(target_name, target)
50
end
51
52
-- the prefix
53
- local prefix = target_name:upper()
+ local prefix = target_name:upper() .. "_CONFIG"
54
55
-- open the file
56
local file = io.open(configfile, "w")
57
58
-- make the head
59
- file:write(string.format("#ifndef %s_CONFIG_H\n", prefix))
60
- file:write(string.format("#define %s_CONFIG_H\n", prefix))
+ file:write(string.format("#ifndef %s_H\n", prefix))
+ file:write(string.format("#define %s_H\n", prefix))
61
file:write("\n")
62
63
-- make version
0 commit comments