From 29bea6f9b2166bf3e50815d84aff3535705f6b9b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 3 Nov 2018 07:16:21 +0100 Subject: fix build on Linux --- cmake/opentrack-boilerplate.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake') diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index 685dbdb3..84bd3a03 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -68,6 +68,10 @@ function(otr_compat target) set_property(SOURCE ${${target}-moc} APPEND_STRING PROPERTY COMPILE_FLAGS "-w -Wno-error ") endif() + if(UNIX) # no-op on OSX + target_link_libraries(${target} m) + endif() + get_property(type TARGET "${n}" PROPERTY TYPE) if (".${TYPE}" STREQUAL ".EXECUTABLE") otr_fixup_subsystem(${target}) -- cgit v1.2.3