From 6472197cfe7b94d61e9fe10ffd53b3a3e5d9fb47 Mon Sep 17 00:00:00 2001 From: Radovan Bast Date: Tue, 22 Sep 2015 10:03:56 +0200 Subject: [PATCH] do not repeat module paths --- update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.py b/update.py index c0c9092..79312b9 100644 --- a/update.py +++ b/update.py @@ -211,9 +211,9 @@ def gen_cmakelists(project_name, min_cmake_version, relative_path, modules): if len(modules) > 0: s.append('\n# directories which hold included cmake modules') - module_paths = set([module.path for module in modules]) - module_paths = list(module_paths) + module_paths = [module.path for module in modules] module_paths.append('downloaded') # this is done to be able to find fetched modules when testing + module_paths = list(set(module_paths)) module_paths.sort() # we do this to always get the same order and to minimize diffs for directory in module_paths: rel_cmake_module_path = os.path.join(relative_path, directory)