summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-20 14:27:38 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-20 14:27:38 +0100
commitc2167d7ed73c96c7e8cb935074ba860e11c821f9 (patch)
treee4399afbbf1ddfcaa490f0134b93948e5d77eff1
parentfixed bad reference to math library (diff)
downloadcuberite-c2167d7ed73c96c7e8cb935074ba860e11c821f9.tar
cuberite-c2167d7ed73c96c7e8cb935074ba860e11c821f9.tar.gz
cuberite-c2167d7ed73c96c7e8cb935074ba860e11c821f9.tar.bz2
cuberite-c2167d7ed73c96c7e8cb935074ba860e11c821f9.tar.lz
cuberite-c2167d7ed73c96c7e8cb935074ba860e11c821f9.tar.xz
cuberite-c2167d7ed73c96c7e8cb935074ba860e11c821f9.tar.zst
cuberite-c2167d7ed73c96c7e8cb935074ba860e11c821f9.zip
-rw-r--r--lib/tolua++/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tolua++/CMakeLists.txt b/lib/tolua++/CMakeLists.txt
index b27e9f67b..637e44d8e 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)
-find_library(M_LIB m)
-target_link_libraries(${M_LIB})
+add_library(math STATIC IMPORTED)
+target_link_libraries(tolua math)
endif()
target_link_libraries(tolua lua tolualib)