File: no-hurd-cpu-features

package info (click to toggle)
volk 3.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,916 kB
  • sloc: ansic: 40,447; cpp: 2,005; asm: 918; python: 897; xml: 375; sh: 157; makefile: 14
file content (17 lines) | stat: -rw-r--r-- 418 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: no hurd cpu features
Author: A. Maitland Bottoms <bottoms@debian.org>

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -134,6 +134,11 @@
     option(VOLK_CPU_FEATURES "Volk uses cpu_features" OFF)
 endif()
 
+# no cpu_features on GNU/Hurd
+if(CMAKE_SYSTEM_NAME MATCHES "GNU")
+  set(VOLK_CPU_FEATURES OFF)
+endif()
+
 if(VOLK_CPU_FEATURES)
     find_package(CpuFeatures QUIET)
     if(NOT CpuFeatures_FOUND)