Page MenuHomePhabricator

Make MITK compatible to CMake 3.5
Closed, ResolvedPublic

Description

When using CMake 3.5, one cannot reconfigure MITK-build without running into "unknown command cmake_parse_arguments". This error occurs since CMake 3.5 as cmake_parse_arguments moved from the CMake module CMakeParseArguments to an internal command.

After hours of debugging and modifing CMake source and becoming desperate it turned out, that CppMicroServices provides a copy of CMakeParseArguments in its CMake folder, which collides with the now internal cmake_parse_arguments command...

I guess this file was copied to CppMicroServices as this library is supposed to be compatible with CMake 2.8, which didn't provide this module or something like that. As we require 3.2 as minimum version and have our own copy of the CppMicroServices in our Modules folder, it is safe to simply delete the CMakeParseArguments.cmake file from CppMicroServices/CMake to finally fix this bug.

Event Timeline

User kislinsk has pushed new remote branch:

bug-19703-CMake35

[7f6144]: Merge branch 'bug-19703-CMake35'

Merged commits:

2016-05-01 06:51:52 Stefan Kislinskiy [6173cd]
COMP: Make MITK compatible to CMake 3.5