aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Dimitrij Kotrev <dimitrij.kotrev@googlemail.com>2021-03-15 09:17:02 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2021-03-16 21:57:52 +0100
commitf17b25550df9223dfeb62b0eeb66cacb5189125f (patch)
treeb56806671c4a0b6fe0e4665128f711bee22083c3
parente471e5dd41d382d96ecc47ff082a7433571494d8 (diff)
downloadbuildroot-f17b25550df9223dfeb62b0eeb66cacb5189125f.tar.gz
buildroot-f17b25550df9223dfeb62b0eeb66cacb5189125f.tar.bz2
package/json-for-modern-cpp: enable multiple headers by default
json-for-modern-cpp provides an option to enable multiple headers support. Currently this option is disabled and the package creates just a single header: "nlohmann/json.hpp", which contains everything. Enabling this option, splits this single header into multiple ones. First of all this provides an additional header: "nlohmann/json_fwd.hpp", which contains only forwarding declarations of types provided by this library. This gives you a more finer control over include dependencies and can speed up build times significantly. The top level header: "nlohmann/json.hpp" is still there and therefore code which used it before, would stay compatible. Signed-off-by: Dimitrij Kotrev <dimitrij.kotrev@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/json-for-modern-cpp/json-for-modern-cpp.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/json-for-modern-cpp/json-for-modern-cpp.mk b/package/json-for-modern-cpp/json-for-modern-cpp.mk
index 6e21723fd4..94cdc909f3 100644
--- a/package/json-for-modern-cpp/json-for-modern-cpp.mk
+++ b/package/json-for-modern-cpp/json-for-modern-cpp.mk
@@ -12,6 +12,6 @@ JSON_FOR_MODERN_CPP_LICENSE_FILES = LICENSE.MIT
JSON_FOR_MODERN_CPP_INSTALL_STAGING = YES
# header only library
JSON_FOR_MODERN_CPP_INSTALL_TARGET = NO
-JSON_FOR_MODERN_CPP_CONF_OPTS = -DJSON_BuildTests=OFF
+JSON_FOR_MODERN_CPP_CONF_OPTS = -DJSON_BuildTests=OFF -DJSON_MultipleHeaders=ON
$(eval $(cmake-package))