Closed dboun closed 4 years ago
Actually it's worth it to try NSIS 2.x again, because apparently that's what the MITK guys use
For solving the "NO TAG FOUND" we should probably
include(mitkFunctionGetVersionDescription)
mitkFunctionGetVersionDescription(${CMAKE_CURRENT_DIR} CaPTk)
in the main CMakeLists of our project
(this might be also needed, but probably not)
set(MITK_CMAKE_DIR ${MITK_SOURCE_DIR}/CMake)
set(CMAKE_MODULE_PATH ${MITK_CMAKE_DIR})
This is fixed by using the correct NSIS version and also giving a tag to the MITK source repo
Fix inspired from here (full changes in the end):
${!defineifexist_CPack} REDIST_INSTALLER_PRESENT MITK-NO TAG FOUND-windows-x86_64\thirdpartyinstallers\vc_redist.x64.exe
change it to${!defineifexist_CPack} REDIST_INSTALLER_PRESENT "MITK-NO TAG FOUND-windows-x86_64\thirdpartyinstallers\vc_redist.x64.exe"
)Sample final project.nsi for src dir "C:/MITK-v2018.04.2-src" and build dir "C:/MITK-superbuild" and certain names for all modules, plugins, and applications