From: Andres Mejia Date: Mon, 6 Feb 2012 00:30:37 +0000 (-0500) Subject: Fix crypto checks in cmake builds. X-Git-Tag: v3.0.4~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=04b62a03260769189a5da97d45e821f7b83dccdb;p=thirdparty%2Flibarchive.git Fix crypto checks in cmake builds. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 8578456c2..b2c363b4d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -420,10 +420,10 @@ ${ARCHIVE_CRYPTO_C} int main(int argc, char **argv) { - archive_${lower_crypto}_ctx ctx; - archive_${lower_crypto}_init(&ctx); - archive_${lower_crypto}_update(&ctx, *argv, argc); - archive_${lower_crypto}_final(&ctx, NULL); + archive_${lower_algorithm}_ctx ctx; + archive_${lower_algorithm}_init(&ctx); + archive_${lower_algorithm}_update(&ctx, *argv, argc); + archive_${lower_algorithm}_final(&ctx, NULL); return 0; } ")