From 58fcd42880d7ad095f682430b1615c6af9ae64bf Mon Sep 17 00:00:00 2001 From: Joakim Soderberg Date: Fri, 13 Dec 2013 12:39:50 +0000 Subject: [PATCH] Link libm on unix platforms. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e822356..25491349 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -550,7 +550,11 @@ if(WIN32) set(EVENT__DNS_USE_FTIME_FOR_ID 1) add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE) set(LIB_PLATFORM ws2_32) - include_directories(./WIN32-Code) + include_directories(./WIN32-Code) +endif() + +if (UNIX) + list(APPEND LIB_PLATFORM m) endif() source_group("Headers Private" FILES ${HDR_PRIVATE})