Prerequirements.cmake 343 B

1234567891011
  1. function(get_test_prerequirements found_var config_file)
  2. if(EXISTS "/bin/sh")
  3. #gunzip is not part of posix so we should not rely on it being installed
  4. find_program(GUNZIP_EXECUTABLE gunzip)
  5. if(GUNZIP_EXECUTABLE)
  6. file(WRITE "${config_file}" "")
  7. set(${found_var} true PARENT_SCOPE)
  8. endif()
  9. endif()
  10. endfunction()