jsoncpp: Add cm3p/ headers for json/json.h and json/forwards.h

Add `cm3p/` headers to use the selected copy of the library.
This commit is contained in:
Brad King 2023-05-19 10:22:05 -04:00
parent d491ea1973
commit 172045b53b
2 changed files with 22 additions and 0 deletions

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/forwards.h> // IWYU pragma: export
#else
# include <cmjsoncpp/include/json/forwards.h> // IWYU pragma: export
#endif

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/json.h> // IWYU pragma: export
#else
# include <cmjsoncpp/include/json/json.h> // IWYU pragma: export
#endif