aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index acd4807..84de10b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)