mirror of
https://github.com/openharmony/third_party_tinyalsa.git
synced 2026-07-01 20:14:06 -04:00
Merge pull request #182 from ericriff/eriff/fix-cmakelist
Fix error when building with -DTINYALSA_BUILD_UTILS=OFF
This commit is contained in:
+4
-1
@@ -69,7 +69,10 @@ foreach(UTIL IN LISTS TINYALSA_UTILS)
|
||||
add_executable("${UTIL}" "utils/${UTIL}.c")
|
||||
target_link_libraries("${UTIL}" PRIVATE "tinyalsa")
|
||||
endforeach()
|
||||
target_link_libraries("tinywavinfo" PRIVATE m)
|
||||
|
||||
if(TINYALSA_BUILD_UTILS)
|
||||
target_link_libraries("tinywavinfo" PRIVATE m)
|
||||
endif()
|
||||
|
||||
# Add C warning flags
|
||||
include(CheckCCompilerFlag)
|
||||
|
||||
Reference in New Issue
Block a user