summaryrefslogtreecommitdiffstats
path: root/Utilities/cm_jsoncpp_writer.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-01-20 15:31:13 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-20 15:37:35 (GMT)
commit27c6da933ec1dd4028bb80e4adf2fa7309ef4a04 (patch)
tree40aa45aa6a35d21a8788191a04adc9851deb80dc /Utilities/cm_jsoncpp_writer.h
parent17cfa09eb2a78349a6471e4719bc933dd0625d9e (diff)
downloadCMake-27c6da933ec1dd4028bb80e4adf2fa7309ef4a04.zip
CMake-27c6da933ec1dd4028bb80e4adf2fa7309ef4a04.tar.gz
CMake-27c6da933ec1dd4028bb80e4adf2fa7309ef4a04.tar.bz2
Add option to build CMake against a system jsoncpp
Create a CMAKE_USE_SYSTEM_JSONCPP option.
Diffstat (limited to 'Utilities/cm_jsoncpp_writer.h')
-rw-r--r--Utilities/cm_jsoncpp_writer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Utilities/cm_jsoncpp_writer.h b/Utilities/cm_jsoncpp_writer.h
index c410369..c99a0d0 100644
--- a/Utilities/cm_jsoncpp_writer.h
+++ b/Utilities/cm_jsoncpp_writer.h
@@ -13,6 +13,11 @@
#define cm_jsoncpp_writer_h
/* Use the jsoncpp library configured for CMake. */
-#include <cmjsoncpp/include/json/writer.h>
+#include "cmThirdParty.h"
+#ifdef CMAKE_USE_SYSTEM_JSONCPP
+# include <json/writer.h>
+#else
+# include <cmjsoncpp/include/json/writer.h>
+#endif
#endif