aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Rusak <lorusak@gmail.com>2017-12-12 21:39:05 -0800
committerLukas Rusak <lorusak@gmail.com>2017-12-12 21:40:06 -0800
commit68c9ca005043eeeb23a20a1ee9b74dd07a56d9a5 (patch)
tree4a67d3d5a785eddbd933a7213ea30cd83ecf40a6
parent42fb60a4ac1d86a3289c78383e9364330c9030b7 (diff)
[cmake] add defines for alsa and pulseaudio
-rw-r--r--cmake/modules/FindAlsa.cmake2
-rw-r--r--cmake/modules/FindPulseAudio.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/FindAlsa.cmake b/cmake/modules/FindAlsa.cmake
index c99f50936d..bed4faac64 100644
--- a/cmake/modules/FindAlsa.cmake
+++ b/cmake/modules/FindAlsa.cmake
@@ -33,7 +33,7 @@ find_package_handle_standard_args(Alsa
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)
+ set(ALSA_DEFINITIONS -DHAS_ALSA=1)
if(NOT TARGET ALSA::ALSA)
add_library(ALSA::ALSA UNKNOWN IMPORTED)
diff --git a/cmake/modules/FindPulseAudio.cmake b/cmake/modules/FindPulseAudio.cmake
index 5761005e7a..3277ec37ff 100644
--- a/cmake/modules/FindPulseAudio.cmake
+++ b/cmake/modules/FindPulseAudio.cmake
@@ -48,7 +48,7 @@ find_package_handle_standard_args(PulseAudio
if(PULSEAUDIO_FOUND)
set(PULSEAUDIO_INCLUDE_DIRS ${PULSEAUDIO_INCLUDE_DIR})
set(PULSEAUDIO_LIBRARIES ${PULSEAUDIO_LIBRARY} ${PULSEAUDIO_MAINLOOP_LIBRARY})
- set(PULSEAUDIO_DEFINITIONS -DHAVE_LIBPULSE=1)
+ set(PULSEAUDIO_DEFINITIONS -DHAS_PULSEAUDIO=1)
if(NOT TARGET PulseAudio::PulseAudioMainloop)
add_library(PulseAudio::PulseAudioMainloop UNKNOWN IMPORTED)