diff options
Diffstat (limited to 'Utilities/cm_jsoncpp_writer.h')
-rw-r--r-- | Utilities/cm_jsoncpp_writer.h | 7 |
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 |