annotate src/portaudio_20161030_catalina_patch/cmake_support/FindASIOSDK.cmake @ 83:ae30d91d2ffe

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam
date Fri, 07 Feb 2020 11:51:13 +0000
parents 4edcd14160a5
children
rev   line source
Chris@55 1 # $Id: $
Chris@55 2 #
Chris@55 3 # - Try to find the ASIO SDK
Chris@55 4 # Once done this will define
Chris@55 5 #
Chris@55 6 # ASIOSDK_FOUND - system has ASIO SDK
Chris@55 7 # ASIOSDK_ROOT_DIR - path to the ASIO SDK base directory
Chris@55 8 # ASIOSDK_INCLUDE_DIR - the ASIO SDK include directory
Chris@55 9
Chris@55 10 if(WIN32)
Chris@55 11 else(WIN32)
Chris@55 12 message(FATAL_ERROR "FindASIOSDK.cmake: Unsupported platform ${CMAKE_SYSTEM_NAME}" )
Chris@55 13 endif(WIN32)
Chris@55 14
Chris@55 15 file(GLOB results "${CMAKE_CURRENT_SOURCE_DIR}/../as*")
Chris@55 16 foreach(f ${results})
Chris@55 17 if(IS_DIRECTORY ${f})
Chris@55 18 set(ASIOSDK_PATH_HINT ${ASIOSDK_PATH_HINT} ${f})
Chris@55 19 endif()
Chris@55 20 endforeach()
Chris@55 21
Chris@55 22 find_path(ASIOSDK_ROOT_DIR
Chris@55 23 common/asio.h
Chris@55 24 HINTS
Chris@55 25 ${ASIOSDK_PATH_HINT}
Chris@55 26 )
Chris@55 27
Chris@55 28 find_path(ASIOSDK_INCLUDE_DIR
Chris@55 29 asio.h
Chris@55 30 PATHS
Chris@55 31 ${ASIOSDK_ROOT_DIR}/common
Chris@55 32 )
Chris@55 33
Chris@55 34 # handle the QUIETLY and REQUIRED arguments and set ASIOSDK_FOUND to TRUE if
Chris@55 35 # all listed variables are TRUE
Chris@55 36 INCLUDE(FindPackageHandleStandardArgs)
Chris@55 37 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASIOSDK DEFAULT_MSG ASIOSDK_ROOT_DIR ASIOSDK_INCLUDE_DIR)
Chris@55 38
Chris@55 39 MARK_AS_ADVANCED(
Chris@55 40 ASIOSDK_ROOT_DIR ASIOSDK_INCLUDE_DIR
Chris@55 41 )