Skip to content

Commit

Permalink
modify configure file prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jun 8, 2015
1 parent c61c0f0 commit 723ec3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xmake/scripts/base/project.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ function project._makeconf_for_target(target_name, target)
end

-- the prefix
local prefix = target_name:upper()
local prefix = target_name:upper() .. "_CONFIG"

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

-- make the head
file:write(string.format("#ifndef %s_CONFIG_H\n", prefix))
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))
file:write("\n")

-- make version
Expand Down

0 comments on commit 723ec3e

Please sign in to comment.