summaryrefslogtreecommitdiffstats
path: root/util/cmake/pro2cmake.py
diff options
context:
space:
mode:
Diffstat (limited to 'util/cmake/pro2cmake.py')
-rwxr-xr-xutil/cmake/pro2cmake.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index 4c8d281549..e77d6fdcaf 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -239,10 +239,13 @@ class RemoveOperation(Operation):
def process(self, input):
input_set = set(input)
+ result_set = set(self._value)
result = []
for v in self._value:
if v in input_set:
continue
+ if v in result_set:
+ result += [v,]
else:
result += ['-{}'.format(v), ]
return result