Update CMakeLists.txt

both CMakeLists.txt and source use ENABLE_XXX
This commit is contained in:
Zhi Guan
2023-12-17 16:33:51 +08:00
parent 2c988b008b
commit 04cbd81651
15 changed files with 85 additions and 91 deletions

View File

@@ -85,7 +85,7 @@ bad:
size_t len = outlen < sizeof(buf) ? outlen : sizeof(buf);
if (rdrand) {
#ifdef INTEL_RDRAND
#ifdef ENABLE_INTEL_RDRAND
if (rdrand_bytes(buf, len) != 1) {
fprintf(stderr, "%s: inner error\n", prog);
goto end;
@@ -94,7 +94,7 @@ bad:
fprintf(stderr, "%s: `-rdrand` is not supported on your platform\n", prog);
#endif
} else if (rdseed) {
#ifdef INTEL_RDSEED
#ifdef ENABLE_INTEL_RDSEED
if (rdseed_bytes(buf, len) != 1) {
fprintf(stderr, "%s: inner error\n", prog);
goto end;