If one makes superbuilds for several configurations (e.g. debug and release) with boost binaries activated the superbuild will fail.
Problem seems to root in a conflict with the already existing boost binary directory. The cmake tries to copy the second build dir to the same destination and fails if the destination already exists. This should be addressed appropriatly.
Example error message:
2> Building Custom Rule D:/Dev/MITK/src/CMakeLists.txt
2> CMake does not need to re-run because D:\Dev\MITK\build\CMakeFiles\generate.stamp is up-to-date.
2> Creating directories for 'Boost-download'
2> Performing download step (download, verify and extract) for 'Boost-download'
2> -- verifying file...
2> file='D:/Dev/MITK/build/ep/src/boost_1_60_0.7z'
2> -- File already exists and hash match (skip download):
2> file='D:/Dev/MITK/build/ep/src/boost_1_60_0.7z'
2> MD5='7ce7f5a4e396484da8da6b60d4ed7661'
2> -- extracting...
2> src='D:/Dev/MITK/build/ep/src/boost_1_60_0.7z'
2> dst='D:/Dev/MITK/build/ep/src/Boost-download'
2> -- extracting... [tar xfz]
2> -- extracting... [analysis]
2> -- extracting... [rename]
2> CMake Error at Boost-download-stamp/extract-Boost-download.cmake:51 (file):
2> file RENAME failed to rename
2>
2> D:/Dev/MITK/build/ep/src/ex-Boost-download1234/boost_1_60_0
2>
2> to
2>
2> D:/Dev/MITK/build/ep/src/Boost-download
2>
2> because: Directory not empty if one