1
0
mirror of https://github.com/google/cpu_features.git synced 2025-04-27 23:22:31 +02:00

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

This commit is contained in:
Mizux 2023-09-14 10:19:28 +02:00 committed by GitHub
parent b960bcf0f5
commit 688decfc80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -180,7 +180,7 @@ target_include_directories(cpu_features
if(APPLE)
target_compile_definitions(cpu_features PRIVATE HAVE_SYSCTLBYNAME)
endif()
add_library(CpuFeature::cpu_features ALIAS cpu_features)
add_library(CpuFeatures::cpu_features ALIAS cpu_features)
#
# program : list_cpu_features
@ -189,7 +189,7 @@ add_library(CpuFeature::cpu_features ALIAS cpu_features)
if(BUILD_EXECUTABLE)
add_executable(list_cpu_features ${PROJECT_SOURCE_DIR}/src/utils/list_cpu_features.c)
target_link_libraries(list_cpu_features PRIVATE cpu_features)
add_executable(CpuFeature::list_cpu_features ALIAS list_cpu_features)
add_executable(CpuFeatures::list_cpu_features ALIAS list_cpu_features)
endif()
#

View File

@ -17,7 +17,7 @@ or add cpu_features as a git-submodule in your project
2- You can then use the cmake command `add_subdirectory()` to include
cpu_features directly and use the `cpu_features` target in your project.
3- Add the `CpuFeature::cpu_features` target to the `target_link_libraries()` section of
3- Add the `CpuFeatures::cpu_features` target to the `target_link_libraries()` section of
your executable or of your library.
## Disabling tests