google / cpu_features

A cross platform C99 library to get cpu features at runtime.
Apache License 2.0
2.44k stars 258 forks source link

cmake: Use CpuFeatures:: as TARGET namespace (Fix #333) #334

Closed Mizux closed 1 year ago

Mizux commented 1 year ago

Use CpuFeatures:: for ALIAS since this is the name we already use for install(EXPORT)...

note: currently CI test using cmake install step, I don't know if we should also add a job to check if using CpuFeatures::cpu_features using add_subdirectory()/FetchContent() is also working as expected (both will rely on the ALIAS...)