# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.

cmake_minimum_required(VERSION 3.5)

if("/opt/conda/conda-bld/bam-readcount_1518538573613/work/bam-readcount-0.8.0/vendor/samtools-0.1.19.tar.gz" STREQUAL "")
  message(FATAL_ERROR "LOCAL can't be empty")
endif()

if(NOT EXISTS "/opt/conda/conda-bld/bam-readcount_1518538573613/work/bam-readcount-0.8.0/vendor/samtools-0.1.19.tar.gz")
  message(FATAL_ERROR "File not found: /opt/conda/conda-bld/bam-readcount_1518538573613/work/bam-readcount-0.8.0/vendor/samtools-0.1.19.tar.gz")
endif()

if("" STREQUAL "")
  message(WARNING "File will not be verified since no URL_HASH specified")
  return()
endif()

if("" STREQUAL "")
  message(FATAL_ERROR "EXPECT_VALUE can't be empty")
endif()

message(STATUS "verifying file...
     file='/opt/conda/conda-bld/bam-readcount_1518538573613/work/bam-readcount-0.8.0/vendor/samtools-0.1.19.tar.gz'")

file("" "/opt/conda/conda-bld/bam-readcount_1518538573613/work/bam-readcount-0.8.0/vendor/samtools-0.1.19.tar.gz" actual_value)

if(NOT "${actual_value}" STREQUAL "")
  message(FATAL_ERROR "error:  hash of
  /opt/conda/conda-bld/bam-readcount_1518538573613/work/bam-readcount-0.8.0/vendor/samtools-0.1.19.tar.gz
does not match expected value
  expected: ''
    actual: '${actual_value}'
")
endif()

message(STATUS "verifying file... done")
