diff options
Diffstat (limited to 'attic/modules/FindAlsa.cmake')
-rw-r--r-- | attic/modules/FindAlsa.cmake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/attic/modules/FindAlsa.cmake b/attic/modules/FindAlsa.cmake index 1bad8126..e0aa4e21 100644 --- a/attic/modules/FindAlsa.cmake +++ b/attic/modules/FindAlsa.cmake @@ -22,14 +22,14 @@ find_library(ASOUND_LIBRARY asound) set(ASOUND_LIBRARY_DIR "") if(ASOUND_LIBRARY) get_filename_component(ASOUND_LIBRARY_DIR ${ASOUND_LIBRARY} PATH) -endif(ASOUND_LIBRARY) +endif() check_library_exists(asound snd_seq_create_simple_port "${ASOUND_LIBRARY_DIR}" HAVE_LIBASOUND2) if(HAVE_LIBASOUND2) message(STATUS "Found ALSA: ${ASOUND_LIBRARY}") -else(HAVE_LIBASOUND2) +else() message(STATUS "ALSA not found") -endif(HAVE_LIBASOUND2) +endif() set(ALSA_FOUND ${HAVE_LIBASOUND2}) find_path(ALSA_INCLUDES alsa/version.h) @@ -39,9 +39,9 @@ macro(ALSA_VERSION_STRING _result) if(ALSA_INCLUDES) file(READ "${ALSA_INCLUDES}/alsa/version.h" _ALSA_VERSION_CONTENT) string(REGEX REPLACE ".*SND_LIB_VERSION_STR.*\"(.*)\".*" "\\1" ${_result} "${_ALSA_VERSION_CONTENT}") - else(ALSA_INCLUDES) + else() message(STATUS "ALSA version not known. ALSA output will probably not work correctly.") - endif(ALSA_INCLUDES) + endif() endmacro(ALSA_VERSION_STRING _result) @@ -61,7 +61,7 @@ macro(ALSA_CONFIGURE_FILE _destFile) check_library_exists(asound snd_pcm_resume "${ASOUND_LIBRARY_DIR}" ASOUND_HAS_SND_PCM_RESUME) if(ASOUND_HAS_SND_PCM_RESUME) set(HAVE_SND_PCM_RESUME 1) - endif(ASOUND_HAS_SND_PCM_RESUME) + endif() configure_file(${_FIND_ALSA_MODULE_DIR}/config-alsa.h.cmake ${_destFile}) endmacro(ALSA_CONFIGURE_FILE _destFile) |