From: Gunnar Beutner Date: Mon, 1 Sep 2014 11:39:49 +0000 (+0200) Subject: Link libcJSON against libm X-Git-Tag: v2.1.1~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d16ed842548ee9a39c778ab369a26a4157bea1f;p=icinga2 Link libcJSON against libm fixes #6147 --- diff --git a/third-party/cJSON/CMakeLists.txt b/third-party/cJSON/CMakeLists.txt index e35889d2d..bc3f7aaa0 100644 --- a/third-party/cJSON/CMakeLists.txt +++ b/third-party/cJSON/CMakeLists.txt @@ -23,6 +23,10 @@ set_target_properties ( FOLDER Lib ) +if(UNIX) + target_link_libraries(cJSON m) +endif() + install( TARGETS cJSON RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR}