Commit c75bf76c authored by Ghislain MARY's avatar Ghislain MARY

Fix check for qsa library when building with CMake.

parent ca8ad4af
......@@ -27,6 +27,7 @@
# QSA_LIBRARIES - The libraries needed to use QSA
include(CheckSymbolExists)
include(CMakePushCheckState)
set(_QSA_ROOT_PATHS
${WITH_QSA}
......@@ -49,7 +50,11 @@ find_library(QSA_LIBRARIES
)
if(QSA_LIBRARIES)
check_symbol_exists(snd_pcm_open sys/asound.h HAVE_SND_PCM_OPEN)
cmake_push_check_state(RESET)
list(APPEND CMAKE_REQUIRED_INCLUDES ${QSA_INCLUDE_DIRS})
list(APPEND CMAKE_REQUIRED_LIBRARIES ${QSA_LIBRARIES})
check_symbol_exists(snd_pcm_open "sys/asound.h" HAVE_SND_PCM_OPEN)
cmake_pop_check_state()
endif()
include(FindPackageHandleStandardArgs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment