From f44ecaa4f27e7538ddcad66d40e543bffa2d2d86 Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 4 Jun 2017 16:57:49 +0200 Subject: sync with upstream --- project/cmake/modules/FindAlsa.cmake | 46 ------------------------------------ 1 file changed, 46 deletions(-) delete mode 100644 project/cmake/modules/FindAlsa.cmake (limited to 'project/cmake/modules/FindAlsa.cmake') diff --git a/project/cmake/modules/FindAlsa.cmake b/project/cmake/modules/FindAlsa.cmake deleted file mode 100644 index a282243..0000000 --- a/project/cmake/modules/FindAlsa.cmake +++ /dev/null @@ -1,46 +0,0 @@ -#.rst: -# FindAlsa -# -------- -# Finds the Alsa library -# -# This will will define the following variables:: -# -# ALSA_FOUND - system has Alsa -# ALSA_INCLUDE_DIRS - the Alsa include directory -# ALSA_LIBRARIES - the Alsa libraries -# ALSA_DEFINITIONS - the Alsa compile definitions -# -# and the following imported targets:: -# -# ALSA::ALSA - The Alsa library - -if(PKG_CONFIG_FOUND) - pkg_check_modules(PC_ALSA alsa QUIET) -endif() - -find_path(ALSA_INCLUDE_DIR NAMES alsa/asoundlib.h - PATHS ${PC_ALSA_INCLUDEDIR}) -find_library(ALSA_LIBRARY NAMES asound - PATHS ${PC_ALSA_LIBDIR}) - -set(ALSA_VERSION ${PC_ALSA_VERSION}) - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(ALSA - REQUIRED_VARS ALSA_LIBRARY ALSA_INCLUDE_DIR - VERSION_VAR ALSA_VERSION) - -if(ALSA_FOUND) - set(ALSA_INCLUDE_DIRS "") # Don't want these added as 'timer.h' is a dangerous file - set(ALSA_LIBRARIES ${ALSA_LIBRARY}) - set(ALSA_DEFINITIONS -DHAVE_ALSA=1 -DUSE_ALSA=1) - - if(NOT TARGET ALSA::ALSA) - add_library(ALSA::ALSA UNKNOWN IMPORTED) - set_target_properties(ALSA::ALSA PROPERTIES - IMPORTED_LOCATION "${ALSA_LIBRARY}" - INTERFACE_COMPILE_DEFINITIONS "${ALSA_DEFINITIONS}") - endif() -endif() - -mark_as_advanced(ALSA_INCLUDE_DIR ALSA_LIBRARY) -- cgit v1.2.3