]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix crypto checks in cmake builds.
authorAndres Mejia <amejia004@gmail.com>
Mon, 6 Feb 2012 00:30:37 +0000 (19:30 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 11 Mar 2012 05:17:43 +0000 (14:17 +0900)
CMakeLists.txt

index 8578456c2c978dfa9938220e21542888b474523a..b2c363b4def2acae7982710f225230815a4976f3 100644 (file)
@@ -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;
 }
 ")