do not repeat module paths
This commit is contained in:
parent
11137ffaf2
commit
6472197cfe
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user