From 0836e5e6602f3101660e7653d7796be7f8f5bd80 Mon Sep 17 00:00:00 2001 From: Tycho Bickerstaff Date: Fri, 20 Dec 2013 13:21:58 +0000 Subject: fixed bad reference to math library --- lib/tolua++/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/tolua++') diff --git a/lib/tolua++/CMakeLists.txt b/lib/tolua++/CMakeLists.txt index 9a84c05b2..b27e9f67b 100644 --- a/lib/tolua++/CMakeLists.txt +++ b/lib/tolua++/CMakeLists.txt @@ -19,7 +19,8 @@ add_library(tolualib ${LIB_SOURCE}) #m is the standard math librarys if(UNIX) -target_link_libraries(m) +find_library(M_LIB m) +target_link_libraries(${M_LIB}) endif() target_link_libraries(tolua lua tolualib) -- cgit v1.2.3