devel/cpu_features: new port, cpu_features 0.8.0
This commit is contained in:
11
devel/cpu_features/patches/patch-CMakeLists_txt
Normal file
11
devel/cpu_features/patches/patch-CMakeLists_txt
Normal file
@@ -0,0 +1,11 @@
|
||||
Compatibility with CMake < 3.5 was removed from CMake 4.
|
||||
|
||||
Index: CMakeLists.txt
|
||||
--- CMakeLists.txt.orig
|
||||
+++ CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 3.0)
|
||||
+cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
# option() honors normal variables.
|
||||
# see: https://cmake.org/cmake/help/git-stage/policy/CMP0077.html
|
||||
@@ -0,0 +1,16 @@
|
||||
We're parsing dmesg, just like FreeBSD
|
||||
|
||||
Index: include/cpu_features_macros.h
|
||||
--- include/cpu_features_macros.h.orig
|
||||
+++ include/cpu_features_macros.h
|
||||
@@ -91,6 +91,10 @@
|
||||
#define CPU_FEATURES_OS_FREEBSD
|
||||
#endif
|
||||
|
||||
+#if (defined(__openbsd__) || defined(__OpenBSD__))
|
||||
+#define CPU_FEATURES_OS_FREEBSD // currently the same
|
||||
+#endif
|
||||
+
|
||||
#if defined(__ANDROID__)
|
||||
#define CPU_FEATURES_OS_ANDROID
|
||||
#endif
|
||||
Reference in New Issue
Block a user