summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0118/CMP0118-Common-Helper.cmake
blob: b237b7f25d3542ce20cf4f12a2754f0a3dd7ae03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
macro(get_and_print_GENERATED_property filename)
  get_property(prop SOURCE      "${CMAKE_CURRENT_BINARY_DIR}/${filename}" PROPERTY GENERATED)
  message(NOTICE "${filename}: # 1a # GENERATED = `${prop}`")
  get_source_file_property(prop "${CMAKE_CURRENT_BINARY_DIR}/${filename}" GENERATED)
  message(NOTICE "${filename}: # 1b # GENERATED = `${prop}`")
  get_property(prop SOURCE      "${filename}"                             PROPERTY GENERATED)
  message(NOTICE "${filename}: # 2a # GENERATED = `${prop}`")
  get_source_file_property(prop "${filename}"                             GENERATED)
  message(NOTICE "${filename}: # 2b # GENERATED = `${prop}`")
  get_property(prop SOURCE      "${CMAKE_CURRENT_SOURCE_DIR}/${filename}" PROPERTY GENERATED)
  message(NOTICE "${filename}: # 3a # GENERATED = `${prop}`")
  get_source_file_property(prop "${CMAKE_CURRENT_SOURCE_DIR}/${filename}" GENERATED)
  message(NOTICE "${filename}: # 3b # GENERATED = `${prop}`")
endmacro()