Page MenuHomePhabricator

Batch files are missing build type folders
Closed, ResolvedPublic

Event Timeline

[9f8bb3]: Merge branch 'bug-10752-fix-windows-batch-files'

Merged commits:

2012-01-19 17:45:14 Sascha Zelzer [2745d0]
Fixed missing build type subfolders in batch files.

Newer CMake versions seem to recursively replace all @ variables
in one configure_file(.... @ONLY) call. This lead to replacing
@VS_BUILD_TYPE@ in the MITK_RUNTIME_PATH variable with nothing when
configuring the MITKConfig.cmake.in file. Applications (like ExtApp)
do a find_package(MITK) and get the MITK_RUNTIME_PATH variable from
the MITKConfig.cmake file, which was then missing the @VS_BUILD_TYPE@
strings for later substitution. This is worked around now by using
the %VS_BUILD_TYPE% placeholder in the MITK_RUNTIME_PATH variable
and substituting it manually in the mitkFunctionCreateWindowsBatchScript
macro.