diff --git a/CMakeLists.txt b/CMakeLists.txt index 42c964ca..e0eef21d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() # diff --git a/cmake/README.md b/cmake/README.md index de33b234..feaa2fb0 100644 --- a/cmake/README.md +++ b/cmake/README.md @@ -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