diff --git a/update.py b/update.py index cc42036..e945496 100755 --- a/update.py +++ b/update.py @@ -211,7 +211,7 @@ def gen_cmakelists(config, relative_path, list_of_modules): s.append('\n') s.append('# included cmake modules') for m in list_of_modules: - s.append('include(%s)' % os.path.splitext(m)[0]) + s.append('include(autocmake_%s)' % os.path.splitext(m)[0]) s.append('\n') s.append('add_subdirectory(${PROJECT_SOURCE_DIR}/src)') @@ -240,7 +240,7 @@ def fetch_modules(config, module_directory): for src in config.get(section, 'source').split('\n'): module_name = os.path.basename(src) list_of_modules.append(module_name) - dst = os.path.join(module_directory, module_name) + dst = os.path.join(module_directory, 'autocmake_%s' % module_name) if 'http' in src: fetch_url(src, dst) else: