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)