summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/cmake/cmakelists.lua
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2020-11-11 14:06:50 +0100
committerJérôme Leclercq <[email protected]>2020-11-11 14:06:50 +0100
commita456d7a16ba9a31071d1c8d785df412d68eb88e6 (patch)
tree62c19477fb2b383d08695f607cce9d92ea9562cb /xmake/plugins/project/cmake/cmakelists.lua
parentf1b890bc1717904c4e11d9cff41191e97b7ef612 (diff)
Replace extra warning by allextra
Diffstat (limited to 'xmake/plugins/project/cmake/cmakelists.lua')
-rw-r--r--xmake/plugins/project/cmake/cmakelists.lua24
1 files changed, 12 insertions, 12 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua
index cfdab0e01..6c708523e 100644
--- a/xmake/plugins/project/cmake/cmakelists.lua
+++ b/xmake/plugins/project/cmake/cmakelists.lua
@@ -274,21 +274,21 @@ end
function _add_target_warnings(cmakelists, target)
local flags_gcc =
{
- none = "-w"
- , less = "-Wall"
- , more = "-Wall"
- , all = "-Wall"
- , error = "-Werror"
- , extra = "-Wextra"
+ none = "-w"
+ , less = "-Wall"
+ , more = "-Wall"
+ , all = "-Wall"
+ , allextra = "-Wall -Wextra"
+ , error = "-Werror"
}
local flags_msvc =
{
- none = "-W0"
- , less = "-W1"
- , more = "-W3"
- , all = "-W3" -- = "-Wall" will enable too more warnings
- , error = "-WX"
- , extra = "-W4"
+ none = "-W0"
+ , less = "-W1"
+ , more = "-W3"
+ , all = "-W3" -- = "-Wall" will enable too more warnings
+ , allextra = "-W4"
+ , error = "-WX"
}
local warnings = target:get("warnings")
if warnings then