libjson-c: remove old math patch
[openwrt/staging/chunkeey.git] / package / libs / libjson-c / patches / 010-clang.patch
1 --- a/CMakeLists.txt
2 +++ b/CMakeLists.txt
3 @@ -265,7 +265,7 @@ message(STATUS "Wrote ${PROJECT_BINARY_D
4 configure_file(${PROJECT_SOURCE_DIR}/cmake/json_config.h.in ${PROJECT_BINARY_DIR}/json_config.h)
5 message(STATUS "Wrote ${PROJECT_BINARY_DIR}/json_config.h")
6
7 -if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
8 +if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
9 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffunction-sections -fdata-sections")
10 if ("${DISABLE_WERROR}" STREQUAL "OFF")
11 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")