mirror of
https://github.com/google/cpu_features.git
synced 2025-04-27 07:02:30 +02:00
parent
b960bcf0f5
commit
688decfc80
@ -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()
|
||||
|
||||
#
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user