do not repeat module paths

This commit is contained in:
Radovan Bast 2015-09-22 10:03:56 +02:00
parent 11137ffaf2
commit 6472197cfe

View File

@ -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)