cmake: remove now unused FLAC++ module

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-08-08 07:28:27 +03:00
parent 49cee3d20b
commit 419b5e9d48
2 changed files with 0 additions and 43 deletions

View file

@ -28,7 +28,6 @@ set(cmakeFiles
FindEPub.cmake
FindExiv2.cmake
FindFFmpegThumbnailer.cmake
FindFLAC++.cmake
FindFontconfig.cmake
FindGettextPO.cmake
FindGLIB2.cmake

View file

@ -1,42 +0,0 @@
# Try to find the FLAC++ library, once done this will define:
#
# FLAC_FOUND - system has FLAC++
# FLAC_INCLUDES - the FLAC++ include directories
# FLAC_LIBRARIES - the libraries needed to use FLAC++
# FLAC_DEFINITIONS - compiler switches required for using FLAC++
#
# Copyright (c) 2019 Ivailo Monev <xakepa10@gmail.com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if(NOT WIN32)
find_package(PkgConfig)
pkg_check_modules(PC_FLAC QUIET flac++)
set(FLAC_INCLUDES ${PC_FLAC_INCLUDE_DIRS})
set(FLAC_LIBRARIES ${PC_FLAC_LIBRARIES})
endif()
set(FLAC_VERSION ${PC_FLAC_VERSION})
set(FLAC_DEFINITIONS ${PC_FLAC_CFLAGS_OTHER})
if(NOT FLAC_INCLUDES OR NOT FLAC_LIBRARIES)
find_path(FLAC_INCLUDES
NAMES FLAC++/metadata.h
HINTS $ENV{FLACPPDIR}/include
)
find_library(FLAC_LIBRARIES
NAMES FLAC++
HINTS $ENV{FLACPPDIR}/lib
)
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(FLAC++
VERSION_VAR FLAC_VERSION
REQUIRED_VARS FLAC_INCLUDES FLAC_LIBRARIES
)
mark_as_advanced(FLAC_INCLUDES FLAC_LIBRARIES)