jsoncpp: Add cm3p/ header for json/version.h

Add a `cm3p/` header to use the selected copy of the library.
This commit is contained in:
Brad King 2024-12-12 08:24:40 -05:00
parent ed0baf1ec5
commit 0330513c24
2 changed files with 11 additions and 1 deletions

View File

@ -59,7 +59,6 @@
{ include: [ "@<.*curl/system.h>", private, "<cm3p/curl/curl.h>", public ] },
{ include: [ "@<.*json/config.h>", private, "<cm3p/json/value.h>", public ] },
{ include: [ "@<.*json/forwards.h>", private, "<cm3p/json/value.h>", public ] },
{ include: [ "@<.*json/version.h>", private, "<cm3p/json/value.h>", public ] },
{ include: [ "@<.*uv/.+\\.h>", private, "<cm3p/uv.h>", public ] },
{ include: [ "@<.*expat_external.h>", private, "<cm3p/expat.h>", public ] },
{ include: [ "@<.*zconf.h>", private, "<cm3p/zlib.h>", public ] },

View File

@ -0,0 +1,11 @@
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#pragma once
/* Use the jsoncpp library configured for CMake. */
#include "cmThirdParty.h"
#ifdef CMAKE_USE_SYSTEM_JSONCPP
# include <json/version.h> // IWYU pragma: export
#else
# include <cmjsoncpp/include/json/version.h> // IWYU pragma: export
#endif