diff options
author | Brad King <brad.king@kitware.com> | 2016-11-03 17:31:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-10 13:29:38 (GMT) |
commit | cd8a57ae9b4e7f811d30e1c5b225d36c7a049429 (patch) | |
tree | c5092903ff47c843496bf47cb40d246d536f99e3 /Utilities | |
parent | 71180fc8aa1db84260552f494578401e3ddb6a84 (diff) | |
download | CMake-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')
-rw-r--r-- | Utilities/cmThirdParty.h.in | 1 | ||||
-rw-r--r-- | Utilities/cm_rhash.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Utilities/cmThirdParty.h.in b/Utilities/cmThirdParty.h.in index 210e727..a547f0d 100644 --- a/Utilities/cmThirdParty.h.in +++ b/Utilities/cmThirdParty.h.in @@ -13,6 +13,7 @@ #cmakedefine CMAKE_USE_SYSTEM_LIBLZMA #cmakedefine CMAKE_USE_SYSTEM_FORM #cmakedefine CMAKE_USE_SYSTEM_JSONCPP +#cmakedefine CMAKE_USE_SYSTEM_LIBRHASH #cmakedefine CMAKE_USE_SYSTEM_LIBUV #cmakedefine CTEST_USE_XMLRPC 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 |