1# 2# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230) 3# 4# SPDX-License-Identifier: BSD-2-Clause 5# 6 7cmake_minimum_required(VERSION 3.8.2) 8 9# Save path to checkout of https://github.com/ruslo/polly 10macro(FindPolly) 11 find_path(POLLY_DIR linux-gcc-x64.cmake ${CMAKE_CURRENT_LIST_DIR}/../../../../tools/polly) 12 mark_as_advanced(FORCE POLLY_DIR) 13 if("${POLLY_DIR}" STREQUAL "POLLY_DIR-NOTFOUND") 14 message(FATAL_ERROR "Failed to find polly. Consider cmake -DPOLLY_DIR=/path/to/polly") 15 endif() 16endmacro() 17