summaryrefslogtreecommitdiff
path: root/xmake/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/plugins')
-rw-r--r--xmake/plugins/project/vstudio/impl/vs201x.lua4
-rw-r--r--xmake/plugins/project/vsxmake/getinfo.lua4
2 files changed, 6 insertions, 2 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua
index 448b89e76..7a4a49dc8 100644
--- a/xmake/plugins/project/vstudio/impl/vs201x.lua
+++ b/xmake/plugins/project/vstudio/impl/vs201x.lua
@@ -406,7 +406,9 @@ function make(outputdir, vsinfo)
-- clear all options
for _, opt in pairs(project.options()) do
- opt:clear()
+ if not config.readonly(opt:fullname()) then
+ opt:clear()
+ end
end
-- clear cache
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua
index 815fef802..613a41404 100644
--- a/xmake/plugins/project/vsxmake/getinfo.lua
+++ b/xmake/plugins/project/vsxmake/getinfo.lua
@@ -456,7 +456,9 @@ function main(outputdir, vsinfo)
-- clear all options
for _, opt in pairs(project.options()) do
- opt:clear()
+ if not config.readonly(opt:fullname()) then
+ opt:clear()
+ end
end
-- clear cache