From acae85b2af87035badfa7b65ad635eba055eed4a Mon Sep 17 00:00:00 2001 From: Michel Promonet Date: Mon, 6 May 2024 15:55:26 +0200 Subject: [PATCH] propagate HAVE_ALSA flag --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b6b7b5c..30e1476 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,7 +114,7 @@ if (ALSA) find_package(ALSA QUIET) MESSAGE("ALSA_FOUND = ${ALSA_FOUND}") if (ALSA_LIBRARY) - add_definitions(-DHAVE_ALSA) + target_compile_definitions(libv4l2rtspserver PUBLIC HAVE_ALSA) set(LIBRARIES ${LIBRARIES} ${ALSA_LIBRARY}) SET(CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS}libasound2,)