diff options
author | Brad King <brad.king@kitware.com> | 2023-05-19 14:22:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-05-23 15:08:42 (GMT) |
commit | 172045b53b3403fb6049b5a416e7f79848eb70a3 (patch) | |
tree | 8c47a0219f4eb433845c792f8194457636923ef3 /Utilities/cm3p | |
parent | d491ea197332abec3fe082397904bc12175d1044 (diff) | |
download | CMake-172045b53b3403fb6049b5a416e7f79848eb70a3.zip CMake-172045b53b3403fb6049b5a416e7f79848eb70a3.tar.gz CMake-172045b53b3403fb6049b5a416e7f79848eb70a3.tar.bz2 |
jsoncpp: Add cm3p/ headers for json/json.h and json/forwards.h
Add `cm3p/` headers to use the selected copy of the library.
Diffstat (limited to 'Utilities/cm3p')
-rw-r--r-- | Utilities/cm3p/json/forwards.h | 11 | ||||
-rw-r--r-- | Utilities/cm3p/json/json.h | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/Utilities/cm3p/json/forwards.h b/Utilities/cm3p/json/forwards.h new file mode 100644 index 0000000..c55c5c1 --- /dev/null +++ b/Utilities/cm3p/json/forwards.h @@ -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 diff --git a/Utilities/cm3p/json/json.h b/Utilities/cm3p/json/json.h new file mode 100644 index 0000000..5671e91 --- /dev/null +++ b/Utilities/cm3p/json/json.h @@ -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 |