From c7d766bbcc2594e9925c47d9a00141c0cff594c1 Mon Sep 17 00:00:00 2001 From: tycho Date: Fri, 20 Dec 2013 00:22:06 +0000 Subject: fixed compile errors with headers and math library --- lib/tolua++/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/tolua++') diff --git a/lib/tolua++/CMakeLists.txt b/lib/tolua++/CMakeLists.txt index 877b89076..9a84c05b2 100644 --- a/lib/tolua++/CMakeLists.txt +++ b/lib/tolua++/CMakeLists.txt @@ -18,4 +18,8 @@ add_executable(tolua ${BIN_SOURCE}) add_library(tolualib ${LIB_SOURCE}) #m is the standard math librarys -target_link_libraries(tolua lua m tolualib) +if(UNIX) +target_link_libraries(m) +endif() + +target_link_libraries(tolua lua tolualib) -- cgit v1.2.3