ports/devel/json-c/files/patch-CMakeLists.txt

22 lines
801 B
Text

Avoid use of newlocale(3) that results in increasing memory usage
--- CMakeLists.txt.orig 2022-04-14 01:09:51 UTC
+++ CMakeLists.txt
@@ -198,7 +198,7 @@ if (HAVE_STDLIB_H)
endif()
if (HAVE_LOCALE_H)
check_symbol_exists(setlocale "locale.h" HAVE_SETLOCALE)
- check_symbol_exists(uselocale "locale.h" HAVE_USELOCALE)
+ # check_symbol_exists(uselocale "locale.h" HAVE_USELOCALE)
endif()
if (HAVE_STRINGS_H)
check_symbol_exists(strcasecmp "strings.h" HAVE_STRCASECMP)
@@ -432,8 +432,6 @@ configure_file(json.h.cmakein ${PROJECT_BINARY_DIR}/js
include_directories(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_BINARY_DIR})
-
-add_subdirectory(doc)
# "uninstall" custom target for make generators in unix like operating systems
# and if that target is not present