summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-20 14:21:58 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-20 14:21:58 +0100
commit0836e5e6602f3101660e7653d7796be7f8f5bd80 (patch)
tree336fd0eae18136f641eadaa9b04af817a9bc16d8
parentMerge branch 'cmake' of github.com:worktycho/MCServer into cmake (diff)
downloadcuberite-0836e5e6602f3101660e7653d7796be7f8f5bd80.tar
cuberite-0836e5e6602f3101660e7653d7796be7f8f5bd80.tar.gz
cuberite-0836e5e6602f3101660e7653d7796be7f8f5bd80.tar.bz2
cuberite-0836e5e6602f3101660e7653d7796be7f8f5bd80.tar.lz
cuberite-0836e5e6602f3101660e7653d7796be7f8f5bd80.tar.xz
cuberite-0836e5e6602f3101660e7653d7796be7f8f5bd80.tar.zst
cuberite-0836e5e6602f3101660e7653d7796be7f8f5bd80.zip
Diffstat (limited to '')
-rw-r--r--lib/tolua++/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
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)