rurban / smhasher

Hash function quality and speed tests
https://rurban.github.io/smhasher/
Other
1.85k stars 178 forks source link

Fix string handling in cmake regex for CPUINFO #278

Closed dlebed closed 1 year ago

dlebed commented 1 year ago

CPUINFO could be an empty string on some platforms, for example, on macOS aarch32 (Apple Silicon).

In this case you'll be getting errors like "string sub-command REGEX, mode REPLACE needs at least 6 arguments total to command"

Add quotes to properly handle empty CPUINFO