summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-astronomy/stellarium/files/stellarium-0.24.3-fast_float.patch')
-rw-r--r--sci-astronomy/stellarium/files/stellarium-0.24.3-fast_float.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/sci-astronomy/stellarium/files/stellarium-0.24.3-fast_float.patch b/sci-astronomy/stellarium/files/stellarium-0.24.3-fast_float.patch
new file mode 100644
index 000000000000..bc46b58c137b
--- /dev/null
+++ b/sci-astronomy/stellarium/files/stellarium-0.24.3-fast_float.patch
@@ -0,0 +1,23 @@
+https://github.com/Stellarium/stellarium/pull/3949
+
+libc++ doesn't support std::from_chars yet, and in such case Stellarium uses an external library
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1053,13 +1053,13 @@ ENDIF()
+
+ include("cmake/Check-from_chars.cmake")
+ IF(NOT FROM_CHARS_WORKS)
+- CPMFindPackage(NAME fast_float
++ CPMFindPackage(NAME FastFloat
+ GIT_REPOSITORY https://github.com/fastfloat/fast_float
+ VERSION 6.1.0
+ EXCLUDE_FROM_ALL yes)
+- GET_TARGET_PROPERTY(fast_float_INCLUDE_DIRECTORIES
++ GET_TARGET_PROPERTY(FastFloat_INCLUDE_DIRECTORIES
+ FastFloat::fast_float INTERFACE_INCLUDE_DIRECTORIES)
+- INCLUDE_DIRECTORIES(${fast_float_INCLUDE_DIRECTORIES})
++ INCLUDE_DIRECTORIES(${FastFloat_INCLUDE_DIRECTORIES})
+ ADD_DEFINITIONS(-DUSE_FAST_FLOAT)
+ ENDIF()
+