File: deb_cpu_features

package info (click to toggle)
spoa 4.1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 464 kB
  • sloc: cpp: 4,552; makefile: 32; sh: 10
file content (23 lines) | stat: -rw-r--r-- 798 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Author: Michael R. Crusoe <crusoe@debian.org>
Description: Use cpu_features from libcpu-features-dev
Forwarded: not-needed
--- spoa.orig/CMakeLists.txt
+++ spoa/CMakeLists.txt
@@ -56,7 +56,7 @@
 target_include_directories(${PROJECT_NAME} PUBLIC
   $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
   $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/vendor/simde>
-  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/vendor/cpu_features/include>
+  /usr/include/cpu_features
   $<INSTALL_INTERFACE:include>)
 target_link_libraries(${PROJECT_NAME}
   cereal)
@@ -66,7 +66,7 @@
 
 if (spoa_generate_dispatch)
   if (NOT TARGET cpu_features)
-    add_subdirectory(vendor/cpu_features EXCLUDE_FROM_ALL)
+    find_package(CpuFeatures REQUIRED)
   endif ()
 
   list(APPEND ARCHITECTURES avx2 sse4.1 sse2)