mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
build: raise an error if pkg is not found
Changed FFmpeg, PCSC and PulseAudio cmake find to raise an error if an required package was not found.
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
pkg_check_modules(PCSC libpcsclite)
|
||||
include(FindPkgConfig)
|
||||
|
||||
# TODO: pcsc version
|
||||
if (PKG_CONFIG_FOUND)
|
||||
pkg_check_modules(PCSC libpcsclite)
|
||||
endif()
|
||||
|
||||
find_path(PCSC_INCLUDE_DIR pcsclite.h PATHS ${PCSC_INCLUDE_DIRS}
|
||||
PATH_SUFFIXES PCSC )
|
||||
find_library(PCSC_LIBRARY pcsclite PATHS ${PCSC_LIBRARY_DIRS})
|
||||
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCSC DEFAULT_MSG PCSC_INCLUDE_DIR PCSC_LIBRARY)
|
||||
|
||||
mark_as_advanced(PCSC_INCLUDE_DIR PCSC_LIBRARY)
|
||||
|
||||
Reference in New Issue
Block a user