summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/TargetPropertyGeneratorExpressions/BadSelfReference6.cmake
blob: d6650d3a5ffc6fab304388afa06a8ba90d5923dc (plain)
1
2
3
4
5
6
7
8
9
10

file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/main.cpp"
           "int main(int, char **) { return 0; }\n")

add_executable(TargetPropertyGeneratorExpressions
           "${CMAKE_CURRENT_BINARY_DIR}/main.cpp")
set_property(TARGET TargetPropertyGeneratorExpressions PROPERTY
COMPILE_DEFINITIONS
  "$<TARGET_PROPERTY:TargetPropertyGeneratorExpressions,COMPILE_DEFINITIONS>"
)