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~2^2~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=729eb4d222fdac168c5e96c20a277a98b274ec2a;p=thirdparty%2Flibarchive.git Fix crypto checks in cmake builds. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d3bcad34..d16818ba9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -397,10 +397,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; } ")