summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/install/file-GET_RUNTIME_DEPENDENCIES-variable-propagation.cmake
blob: 07bbc5ec4cef4a292edfcc73c412e790dfb1fb1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
enable_language(C)

set(CMAKE_GET_RUNTIME_DEPENDENCIES_PLATFORM "custom-platform")
set(CMAKE_GET_RUNTIME_DEPENDENCIES_TOOL "custom-platform-objdump")
set(CMAKE_GET_RUNTIME_DEPENDENCIES_COMMAND "path/to/custom-objdump")
set(CMAKE_OBJDUMP "custom-objdump")

install(CODE [[
message(FATAL_ERROR "
  CMAKE_GET_RUNTIME_DEPENDENCIES_PLATFORM: ${CMAKE_GET_RUNTIME_DEPENDENCIES_PLATFORM}
  CMAKE_GET_RUNTIME_DEPENDENCIES_TOOL: ${CMAKE_GET_RUNTIME_DEPENDENCIES_TOOL}
  CMAKE_GET_RUNTIME_DEPENDENCIES_COMMAND: ${CMAKE_GET_RUNTIME_DEPENDENCIES_COMMAND}
  CMAKE_OBJDUMP: ${CMAKE_OBJDUMP}
")
]]
COMPONENT dev
)