CMP0207 — CMake 4.3.0 Documentation

# CMP0207

Added in version 4.3.

`file(GET_RUNTIME_DEPENDENCIES)` normalizes paths before matching.

The `file(GET_RUNTIME_DEPENDENCIES)` and `install(RUNTIME_DEPENDENCY_SET)` commands support filtering resolved dependencies using regular expressions matching their paths. In CMake 4.2 and below, callers were responsible for matching both forward and backward slashes as path separators on Windows, e.g., via `[\/]`. CMake 4.3 and above prefer to normalize paths to use forward slashes before matching. This policy provides compaitiblity for projects that may have been relying on matching backslashes only.

The `OLD` behavior for this policy matches filters against paths that may contain any combination of forward and backward slashes on Windows. The `NEW` behavior for this policy to convert all paths to forward slashes before matching filters.

This policy was introduced in CMake version 4.3. It may be set by `cmake_policy()` or `cmake_minimum_required()`. If it is not set, CMake warns, and uses `OLD` behavior.

Note

The `OLD` behavior of a policy is deprecated by definition and may be removed in a future version of CMake.