Skip to content

Commit 723ec3e

Browse files
committed
modify configure file prefix
1 parent c61c0f0 commit 723ec3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xmake/scripts/base/project.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ function project._makeconf_for_target(target_name, target)
5050
end
5151

5252
-- the prefix
53-
local prefix = target_name:upper()
53+
local prefix = target_name:upper() .. "_CONFIG"
5454

5555
-- open the file
5656
local file = io.open(configfile, "w")
5757

5858
-- 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))
59+
file:write(string.format("#ifndef %s_H\n", prefix))
60+
file:write(string.format("#define %s_H\n", prefix))
6161
file:write("\n")
6262

6363
-- make version

0 commit comments

Comments
 (0)