CMP0209 — CMake 4.3.3 Documentation

# CMP0209

Added in version 4.3.

Verify interface header sets checks executables without exports.

When `VERIFY_INTERFACE_HEADER_SETS` is set to true on an executable target, CMake 4.2 and below would only perform those checks if the target's `ENABLE_EXPORTS` property was true. The reasoning behind this exclusion was that no other target could consume the headers of an executable target if that executable target didn't export symbols. Since then, other use cases have emerged for verifying header file sets where exporting symbols is no longer a requirement. Therefore, CMake 4.3 and above prefer to verify interface file sets of executable targets regardless of whether they export symbols or not.

The `OLD` behavior of this policy only verifies interface file sets of an executable target if its `ENABLE_EXPORTS` property is set to true. The `NEW` behavior always verifies interface file sets of an executable target when `VERIFY_INTERFACE_HEADER_SETS` is set to true.

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.