diff --git a/third-party/cJSON/CMakeLists.txt b/third-party/cJSON/CMakeLists.txt index bc3f7aaa0..617a9e179 100644 --- a/third-party/cJSON/CMakeLists.txt +++ b/third-party/cJSON/CMakeLists.txt @@ -23,7 +23,7 @@ set_target_properties ( FOLDER Lib ) -if(UNIX) +if(UNIX AND NOT HAIKU) target_link_libraries(cJSON m) endif()