libjson-c: update to 0.16
[openwrt/openwrt.git] / package / libs / libjson-c / patches / 001-dont-build-docs.patch
index 1aa0da4f598f043c93550f25a462c86edd197584..f35da807248744f95bd36d4aa9d5c907f1b5107a 100644 (file)
@@ -1,11 +1,11 @@
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -401,8 +401,6 @@ set(JSON_C_SOURCES
+@@ -433,8 +433,6 @@ configure_file(json.h.cmakein ${PROJECT_
  include_directories(${PROJECT_SOURCE_DIR})
  include_directories(${PROJECT_BINARY_DIR})
  
 -add_subdirectory(doc)
 -
- # uninstall
- add_custom_target(uninstall
-   COMMAND cat ${PROJECT_BINARY_DIR}/install_manifest.txt | xargs rm
+ # "uninstall" custom target for make generators in unix like operating systems
+ # and if that target is not present
+ if (CMAKE_GENERATOR STREQUAL "Unix Makefiles")