Page MenuHomePhabricator

Application configuration depends on file that does not exist if the application is build
Closed, ResolvedPublic

Description

Currently the second line of the
/Applications/Diffusion/CPackConfig.cmake.in
reads
include("@MITK_BINARY_DIR@/MITKCPackOptions.cmake")

however, this file does not exist if MITK Diffusion is the only build application, as defined in the /CMakeLists.txt [1].

Is there a specific reason to keep this line? Otherwise I would just remove it.

[1] http://mitk.org/git/?p=MITK.git;a=blob;f=CMakeLists.txt;h=927124dca60ee31a74597d65ba118fcda9af74ab;hb=HEAD#l928

Event Timeline

I think the intention was to include general MITK CPack options.

I do not know if this file is generated at all in the current build system. If the file is still relevant, wrapping the mentioned include statement in "if(EXISTS "@MITK_BINARY_DIR@/MITKCPackOptions.cmake") ... endif()" should be a quick fix.