fix rel_cmake_module_path on windows

This commit is contained in:
Radovan Bast 2015-07-17 11:23:52 +02:00
parent bafae8ab61
commit 0292b001cc

View File

@ -184,7 +184,7 @@ def gen_cmakelists(config, relative_path, modules):
for directory in set([module.path for module in modules]):
rel_cmake_module_path = os.path.join(relative_path, directory)
# on windows cmake corrects this so we have to make it wrong again
rel_cmake_module_path.replace('\\', '/')
rel_cmake_module_path = rel_cmake_module_path.replace('\\', '/')
s.append('set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/%s)' % rel_cmake_module_path)
s.append('\n# included cmake modules')