summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/DragNDrop/Prerequirements.cmake
blob: f0aaf2ca75e78c86bb5fe615a68e8230aba1f16a (plain)
1
2
3
4
5
6
7
8
function(get_test_prerequirements found_var config_file)
  find_program(HDIUTIL_EXECUTABLE hdiutil)

  if(HDIUTIL_EXECUTABLE)
    file(WRITE "${config_file}" "set(HDIUTIL_EXECUTABLE \"${HDIUTIL_EXECUTABLE}\")")
    set(${found_var} true PARENT_SCOPE)
  endif()
endfunction()