From efaabb16dfe1219f2e51727b5bfac5bba17af78c Mon Sep 17 00:00:00 2001 From: Tycho Bickerstaff Date: Fri, 20 Dec 2013 13:50:41 +0000 Subject: [PATCH] Revert "fixed bad reference to math library" This reverts commit c2167d7ed73c96c7e8cb935074ba860e11c821f9. --- lib/tolua++/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tolua++/CMakeLists.txt b/lib/tolua++/CMakeLists.txt index 637e44d8e..b27e9f67b 100644 --- a/lib/tolua++/CMakeLists.txt +++ b/lib/tolua++/CMakeLists.txt @@ -19,8 +19,8 @@ add_library(tolualib ${LIB_SOURCE}) #m is the standard math librarys if(UNIX) -add_library(math STATIC IMPORTED) -target_link_libraries(tolua math) +find_library(M_LIB m) +target_link_libraries(${M_LIB}) endif() target_link_libraries(tolua lua tolualib)