COMP: Fixed outdated builds on VS2012
High-level build did not build external projects in VS2012. The BUILD_ALWAYS
flag is a relatively new CMake feature (added in 3.1), therefore the following workaround was added into SuperBuild.cmake:
ExternalProject_Add_Step(${proj} forcebuild
COMMAND ${CMAKE_COMMAND} -E remove
${CMAKE_CURRENT_BINARY_DIR}/Slicer-prefix/src/Slicer-stamp/Slicer-build
COMMENT "Forcing build step for '${proj}'"
DEPENDEES build
ALWAYS 1
)
This does not work with Visual Studio, where the stamp file is in Debug/Release/etc. subdirectory:
${CMAKE_CURRENT_BINARY_DIR}/Slicer-prefix/src/Slicer-stamp/${CMAKE_CFG_INTDIR}/Slicer-build