vcpkg/ports/mpg123/have-fpu.diff

14 lines
499 B
Diff
Raw Normal View History

2022-04-19 07:43:04 +08:00
diff --git a/ports/cmake/src/CMakeLists.txt b/ports/cmake/src/CMakeLists.txt
2024-09-04 02:55:42 +08:00
index 32bc03c..acd420f 100644
2022-04-19 07:43:04 +08:00
--- a/ports/cmake/src/CMakeLists.txt
+++ b/ports/cmake/src/CMakeLists.txt
2024-09-04 02:55:42 +08:00
@@ -188,6 +188,8 @@ check_cpu_arch_arm64(ARCH_IS_ARM64)
if(WIN32 OR (ARCH_IS_ARM64 AND APPLE))
2022-04-19 07:43:04 +08:00
set(HAVE_FPU 1)
2024-09-04 02:55:42 +08:00
+elseif(CMAKE_CROSSCOMPILING OR DEFINED HAVE_FPU)
+ set(HAVE_FPU 1 CACHE STRING "Override in triplet if needed")
2022-04-19 07:43:04 +08:00
else()
cmake_host_system_information(RESULT HAVE_FPU QUERY HAS_FPU)
2024-09-04 02:55:42 +08:00
endif()