cJSON

mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit affedd65ba768fca9d8e8c6c08bf5904fd33394e
parent a8196947129618f2728b01178a9aff75f4ef525a
Author: Kevin Branigan <kbranigan@gmail.com>
Date:   Thu, 20 Aug 2015 12:35:07 -0400

Merge pull request #11 from etodd/win-math-lib-fix

Remove "m" library dependency on Windows.

Diffstat:
MCMakeLists.txt | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -8,11 +8,15 @@ file(GLOB HEADERS cJSON.h) set(SOURCES cJSON.c) add_library(${PROJ_CJSON} STATIC ${HEADERS} ${SOURCES}) -target_link_libraries(${PROJ_CJSON} m) +if (NOT WIN32) + target_link_libraries(${PROJ_CJSON} m) +endif() add_library(${PROJ_CJSON}.shared SHARED ${HEADERS} ${SOURCES}) set_target_properties(${PROJ_CJSON}.shared PROPERTIES OUTPUT_NAME cJSON) -target_link_libraries(${PROJ_CJSON}.shared m) +if (NOT WIN32) + target_link_libraries(${PROJ_CJSON}.shared m) +endif() set(PROJ_CJSON_UTILS cJSON_utils)