Add option to build CMake against a system jsoncpp

Create a CMAKE_USE_SYSTEM_JSONCPP option.
This commit is contained in:
Brad King
2015-01-20 10:31:13 -05:00
parent 17cfa09eb2
commit 27c6da933e
6 changed files with 40 additions and 7 deletions

View File

@@ -13,6 +13,11 @@
#define cm_jsoncpp_value_h
/* Use the jsoncpp library configured for CMake. */
#include <cmjsoncpp/include/json/value.h>
#include "cmThirdParty.h"
#ifdef CMAKE_USE_SYSTEM_JSONCPP
# include <json/value.h>
#else
# include <cmjsoncpp/include/json/value.h>
#endif
#endif