opnsense-ports/audio/codec2/files/patch-unittest__CMakeLists.txt
Franco Fichtner 1ff7573b50 */*: sync with upstream
Taken from: HardenedBSD
2017-08-06 10:44:20 +02:00

14 lines
472 B
Text

--- unittest/CMakeLists.txt.orig 2017-06-12 01:04:28 UTC
+++ unittest/CMakeLists.txt
@@ -91,7 +91,10 @@ add_executable(tnewamp1 tnewamp1.c ../sr
target_link_libraries(tnewamp1 codec2)
add_executable(tsrc tsrc.c)
-target_link_libraries(tsrc samplerate)
+target_link_libraries(tsrc ${SAMPLERATE_LIBRARY})
+set_target_properties(tsrc
+ PROPERTIES INCLUDE_DIRECTORIES ${SAMPLERATE_INCLUDE_DIR}
+)
add_executable(tlininterp tlininterp.c)
add_executable(tdec tdec.c)