blob: 231c670228fac412c8263380d5ec873d858872a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
enable_language(C)
add_library(SourceProperty)
cmake_policy(SET CMP0070 OLD)
file(GENERATE OUTPUT relative-output-OLD.c CONTENT "")
target_sources(SourceProperty PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}/relative-output-OLD.c"
)
cmake_policy(SET CMP0070 NEW)
file(GENERATE OUTPUT relative-output-NEW.c CONTENT "")
target_sources(SourceProperty PRIVATE
"${CMAKE_CURRENT_BINARY_DIR}/relative-output-NEW.c"
)
|