Skip to content

Autogen: Add AUTOGEN_USE_SYSTEM_INCLUDE target property

Description

A new target property was added to give an opportunity to users to add the generated target's include directory between INTERFACE_SYSTEM_INCLUDE_DIRECTORIES.

This MR was updated after the discussions here

Changes

  1. AUTOGEN_USE_SYSTEM_INCLUDE was added. AUTOGEN_USE_SYSTEM_INCLUDE is a boolean property that can be set on a target to indicate that the autogen target include directory should be added as a system include directory or normal include directory to the target.

  2. A new policy(CMP0150) was added for the new behavior. (The policy number can change according to this MR)

  3. RunCMake_TEST_EXPECT_* was added. A new variable was added to RunCMake tests so that the output can be checked dynamically too.

Fixes: #24202 (closed)
Topic-rename: autogen-system-include

Edited by Brad King

Merge request reports