summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/tolua++/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/tolua++/CMakeLists.txt b/lib/tolua++/CMakeLists.txt
index b27e9f67b..9a84c05b2 100644
--- a/lib/tolua++/CMakeLists.txt
+++ b/lib/tolua++/CMakeLists.txt
@@ -19,8 +19,7 @@ add_library(tolualib ${LIB_SOURCE})
#m is the standard math librarys
if(UNIX)
-find_library(M_LIB m)
-target_link_libraries(${M_LIB})
+target_link_libraries(m)
endif()
target_link_libraries(tolua lua tolualib)