Page MenuHomePhabricator

CMake Policy CMP0091 does not work well with dependencies that are based on CMake version < 3.15
Closed, ResolvedPublic

Description

The CMake documentation states that the default new behavior matches the old behavior but we cannot confirm this as our dependencies are built with a non-debug runtime in debug configuration. As a quick but transient solution we should use the old behavior in all projects.

We should also create a minimum prototype to show the issue and report it to the CMake devs.

https://cmake.org/cmake/help/v3.18/policy/CMP0091.html
https://cmake.org/cmake/help/v3.18/variable/CMAKE_MSVC_RUNTIME_LIBRARY.html

Event Timeline

kislinsk triaged this task as High priority.Dec 3 2020, 7:24 PM
kislinsk created this task.

Deleted branch bugfix/T28060-CMP0091.

thanks for taking care. ❤

kislinsk reopened this task as Open.

Maybe I should leave this task open until we came up with a minimum prototype...

kislinsk lowered the priority of this task from High to Normal.Dec 4 2020, 12:43 PM

Thanks. No it works again.

Maybe I should leave this task open until we came up with a minimum prototype...

From our process it would make sense to spawn a specific task for it. Otherwise we would miss it for the next changelog. wouldn't we?

It will be automatically listed in the changelog table regardless of the task status. :)