From 879d03fab433e7ffdbeba605693aa0853694d37a Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 14 Jun 2016 10:57:56 +0000 Subject: [PATCH] [CMake] Improve sound support detection. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11780 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 8679ea957..22ec9ab54 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -3,11 +3,14 @@ set(EXECUTABLE_OUTPUT_PATH ${FLTK_BINARY_DIR}/bin/examples) ####################################################################### # audio libs for test apps if(WIN32) - set(AUDIOLIBS winmm) + set(AUDIOLIBS winmm) elseif(APPLE) - set(AUDIOLIBS "-framework CoreAudio") + set(AUDIOLIBS "-framework CoreAudio") elseif(HAVE_ALSA_ASOUNDLIB_H) - set(AUDIOLIBS -lasound) + find_library(LIB_asound asound) + if(LIB_asound) + set(AUDIOLIBS ${LIB_asound}) + endif(LIB_asound) endif(WIN32) #######################################################################