diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-11-03 07:16:21 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-11-03 07:16:21 +0100 |
commit | 29bea6f9b2166bf3e50815d84aff3535705f6b9b (patch) | |
tree | 0e71e401f300234b0c1a47303fcbfbee5f29c0cd /cmake | |
parent | faa3108611e2b31e614d10531548803e2362a4f0 (diff) |
fix build on Linux
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
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}) |