changing cmake option name in printf, changing BASISU_SUPPORT_OPENCL check so it works if the macro is defined but 0

This commit is contained in:
Richard Geldreich
2026-01-19 13:51:28 -05:00
parent ca101e7501
commit a845f21160

View File

@@ -6084,10 +6084,10 @@ static int main_internal(int argc, const char** argv)
astc_fuzz_flag = true;
}
#ifndef BASISU_SUPPORT_OPENCL
#if !BASISU_SUPPORT_OPENCL
if (use_opencl)
{
fprintf(stderr, "WARNING: -opencl specified, but OpenCL support was not enabled at compile time! With cmake, use -D OPENCL=1. Falling back to CPU compression.\n");
fprintf(stderr, "WARNING: -opencl specified, but OpenCL support was not defined or enabled at compile time! With cmake, use -D BASISU_OPENCL=1. Falling back to CPU compression.\n");
}
#endif