summaryrefslogtreecommitdiffstats
path: root/Utilities/cm_rhash.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-11-03 17:31:33 (GMT)
committerBrad King <brad.king@kitware.com>2016-11-10 13:29:38 (GMT)
commitcd8a57ae9b4e7f811d30e1c5b225d36c7a049429 (patch)
treec5092903ff47c843496bf47cb40d246d536f99e3 /Utilities/cm_rhash.h
parent71180fc8aa1db84260552f494578401e3ddb6a84 (diff)
downloadCMake-cd8a57ae9b4e7f811d30e1c5b225d36c7a049429.zip
CMake-cd8a57ae9b4e7f811d30e1c5b225d36c7a049429.tar.gz
CMake-cd8a57ae9b4e7f811d30e1c5b225d36c7a049429.tar.bz2
Add option to build CMake against a system librhash
Create a CMAKE_USE_SYSTEM_LIBRHASH option.
Diffstat (limited to 'Utilities/cm_rhash.h')
-rw-r--r--Utilities/cm_rhash.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Utilities/cm_rhash.h b/Utilities/cm_rhash.h
index 23d5409..c793627 100644
--- a/Utilities/cm_rhash.h
+++ b/Utilities/cm_rhash.h
@@ -3,6 +3,12 @@
#ifndef cm_rhash_h
#define cm_rhash_h
+/* Use the LibRHash library configured for CMake. */
+#include "cmThirdParty.h"
+#ifdef CMAKE_USE_SYSTEM_LIBRHASH
+#include <rhash.h>
+#else
#include <cmlibrhash/librhash/rhash.h>
+#endif
#endif