diff --git a/CMake/mitkFunctionGenerateProjectXml.cmake b/CMake/mitkFunctionGenerateProjectXml.cmake index 27f9b88af2..2d3f4c91a5 100644 --- a/CMake/mitkFunctionGenerateProjectXml.cmake +++ b/CMake/mitkFunctionGenerateProjectXml.cmake @@ -1,45 +1,45 @@ function(mitkFunctionGenerateProjectXml dir name targets is_superbuild) if(NOT EXISTS ${dir}) message(FATAL_ERROR "Directory ${dir} doesn't exist!") endif() set(xml_subprojects ) if(${is_superbuild}) - set(xml_subprojects ${xml_subprojects} " \n") + set(xml_subprojects ${xml_subprojects} " \n") endif() foreach(target ${targets}) # Remarks: Project.xml should contains all sub-project. That way # all dashboards should submit a similar file. set(xml_subprojects ${xml_subprojects} " \n") if(${is_superbuild}) set(xml_subprojects ${xml_subprojects} " \n") endif() # Generate XML related to the dependencies #foreach(dependency_name ${dependencies}) # set(xml_subprojects ${xml_subprojects} " \n") #endforeach() set(xml_subprojects ${xml_subprojects} " \n") endforeach() set(xml_subprojects ${xml_subprojects} " \n") foreach(subproject ${targets}) set(xml_subprojects ${xml_subprojects} " \n") endforeach() set(xml_subprojects ${xml_subprojects} " \n") set(xml_content "\n${xml_subprojects}") set(filename "${dir}/Project.xml") file(WRITE ${filename} ${xml_content}) message(STATUS "Generated: ${filename}") endfunction()