When configuring and building MITK with cmake via command line, I get the following error, if I build a second time using the same build-directory that was used before for building:
cmake --build . --target ALL_BUILD --config Release Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved. Creating directories for 'CTK' Building Custom Rule D:/MITK-BSQ/src/CMakeLists.txt CMake does not need to re-run because D:/MITK-BSQ/build2/CMakeFiles/generate.stamp is up-to-date. Performing download step (download, verify and extract) for 'CTK' -- verifying file... file='D:/MITK-BSQ/build2/ep/src/CTK_kislinsk_fix-pythonlibs-handling.tar.gz' -- File already exists and hash match (skip download): file='D:/MITK-BSQ/build2/ep/src/CTK_kislinsk_fix-pythonlibs-handling.tar.gz' MD5='49e1652cc505bdf3f77210976df97d63' -- extracting... src='D:/MITK-BSQ/build2/ep/src/CTK_kislinsk_fix-pythonlibs-handling.tar.gz' dst='D:/MITK-BSQ/build2/ep/src/CTK' -- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done No update step for 'CTK' No patch step for 'CTK' Performing configure step for 'CTK' loading initial cache file D:/MITK-BSQ/build2/ep/tmp/CTK-cache-Release.cmake -- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.10240. -- Generated: D:/MITK-BSQ/build2/ep/src/CTK-build/DGraphInput-alldep.txt CMake Error at C:/Program Files/CMake/share/cmake-3.14/Modules/ExternalProject.cmake:2427 (message): CUSTOMBUILD : error : could not find git for clone of qRestAPI [D:\MITK-BSQ\build2\CTK.vcxproj] Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.14/Modules/ExternalProject.cmake:3211 (_ep_add_download_command) CMakeExternals/qRestAPI.cmake:60 (ExternalProject_Add) CMake/ctkMacroCheckExternalProjectDependency.cmake:795 (include) CMake/ctkMacroCheckExternalProjectDependency.cmake:858 (ExternalProject_Include_Dependencies) CMake/ctkBlockCheckDependencies.cmake:134 (ExternalProject_Include_Dependencies) CMakeLists.txt:979 (include) -- Generated: D:/MITK-BSQ/build2/ep/src/CTK-build/DGraphInput-alldep-withext.txt -- Generated: D:/MITK-BSQ/build2/ep/src/CTK-build/DGraphInput.txt -- SuperBuild - First pass -- SuperBuild - First pass - done -- SuperBuild - Log4Qt[OPTIONAL] -- SuperBuild - VTK[OPTIONAL] -- SuperBuild - PythonQt[OPTIONAL] -- SuperBuild - ZMQ[OPTIONAL] -- SuperBuild - QtSOAP[OPTIONAL] -- SuperBuild - qxmlrpc[OPTIONAL] -- SuperBuild - OpenIGTLink[OPTIONAL] -- SuperBuild - ITK[OPTIONAL] -- SuperBuild - QtTesting[OPTIONAL] -- SuperBuild - CTK => Requires DCMTK, qRestAPI, -- SuperBuild - DCMTK[OK] -- SuperBuild - qRestAPI[OK] -- Configuring incomplete, errors occurred! See also "D:/MITK-BSQ/build2/ep/src/CTK-build/CMakeFiles/CMakeOutput.log".
This happened using Windows and Linux with CMake 3.14.5