summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/STGZ/Prerequirements.cmake
blob: 3b015ca253554705073c5876de40178be81de33f (plain)
1
2
3
4
5
6
7
8
9
10
11
function(get_test_prerequirements found_var config_file)
  if(EXISTS "/bin/sh")
    #gunzip is not part of posix so we should not rely on it being installed
    find_program(GUNZIP_EXECUTABLE gunzip)

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