mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
This was originally attempted by policy CMP0118, but its
implementation did not cover all intended use cases. We fixed its
documentation in commit 1dabbbb5e0 (CMP0118: Revise documentation to
describe actual behavior, 2024-03-20).
Add new policy CMP0163 to cover the remaining use cases. In particular,
make the `GENERATED` property visible to `get_property` calls in other
directories. In order to capture the original intention of CMP0118,
define CMP0163's NEW behavior to also imply CMP0118's NEW behavior.
Fixes: #25437
Fixes: #25058
17 lines
750 B
CMake
17 lines
750 B
CMake
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source1.txt"
|
|
PROPERTY GENERATED "1")
|
|
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source2.txt"
|
|
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.."
|
|
PROPERTY GENERATED "1")
|
|
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source3.txt"
|
|
TARGET_DIRECTORY custom1
|
|
PROPERTY GENERATED "1")
|
|
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.txt"
|
|
PROPERTY GENERATED "1")
|
|
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.txt"
|
|
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.."
|
|
PROPERTY GENERATED "1")
|
|
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.txt"
|
|
TARGET_DIRECTORY custom1
|
|
PROPERTY GENERATED "1")
|