aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMizux <mizux.dev@gmail.com>2023-09-14 10:19:28 +0200
committerGitHub <noreply@github.com>2023-09-14 10:19:28 +0200
commit688decfc802e006d6988446970892dcd37e5d151 (patch)
treea1027dabdddffdb8f62e555ec8fce2c809a037a2
parentb960bcf0f5bca0f05d6ae7f89ddd8ff42893df0f (diff)
downloadcpu_features-688decfc802e006d6988446970892dcd37e5d151.tar.gz
cmake: Use CpuFeatures:: as TARGET namespace (Fix #333) (#334)
-rw-r--r--CMakeLists.txt4
-rw-r--r--cmake/README.md2
2 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 42c964c..e0eef21 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 de33b23..feaa2fb 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