Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Commit 5713af4

Browse files
author
syb0rg
committed
Set LIBS variable properly
1 parent 0ce23e2 commit 5713af4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libsphinxad/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@ endif ()
77
find_package(PulseAudio)
88
if (PULSEAUDIO_FOUND)
99
set(SOURCES ${SOURCES} ad_pulse.c)
10-
set(LIBS ${LIBS} ${PULSEAUDIO_LIBRARIES})
10+
set(LIBS ${LIBS} ${PULSEAUDIO_LIBRARIES} CACHE INTERNAL "libs")
1111
endif()
1212

1313
find_package(OSS)
1414
if (OSS_FOUND)
15-
set(SOURCES ${SOURCES} ad_oss.c)
15+
set(SOURCES ${SOURCES} ad_oss.c )
1616
endif()
1717

1818
find_package(OpenAL)
1919
if (OPENAL_FOUND)
2020
set(SOURCES ${SOURCES} ad_openal.c)
21-
set(LIBS ${LIBS} ${OPENAL_LIBRARY})
21+
set(LIBS ${LIBS} ${OPENAL_LIBRARY} CACHE INTERNAL "libs")
2222
include_directories(${OPENAL_INCLUDE_DIR})
2323
endif()
2424

2525
find_package(ALSA)
2626
if (ALSA_FOUND)
2727
set(SOURCES ${SOURCES} ad_alsa.c)
28-
set(LIBS ${LIBS} ${ALSA_LIBRARIES})
28+
set(LIBS ${LIBS} ${ALSA_LIBRARIES} CACHE INTERNAL "libs")
2929
endif()
3030

3131
add_library(libsphinxad OBJECT ${SOURCES})

0 commit comments

Comments
 (0)