aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiff, Eric <eriff@irobot.com>2020-09-16 21:38:54 -0300
committerRiff, Eric <eriff@irobot.com>2020-09-16 21:38:54 -0300
commit7310073cb7a3e314140ebc66e5a58c94f0b6b58a (patch)
tree52148cb6e0394861c67cb1c0595aa276551ce2c9
parent6a4cab794ce3d8673242e982dd15805cf963126e (diff)
Fix error when building with -DTINYALSA_BUILD_UTILS=OFF
-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)