forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(conan-io#23833) c4core: fix url for version 0.2.0
- Loading branch information
Showing
2 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
recipes/c4core/all/patches/0.2.0-0001-make-fast_float-external.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index f1d62be..cda061c 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -76,7 +76,7 @@ set(C4CORE_SRC_FILES | ||
if(C4CORE_WITH_FASTFLOAT) | ||
list(APPEND C4CORE_SRC_FILES | ||
c4/ext/fast_float.hpp | ||
- c4/ext/fast_float_all.h | ||
+# c4/ext/fast_float_all.h | ||
) | ||
endif() | ||
set(C4CORE_AMALGAMATED ${C4CORE_SRC_DIR}/../src_singleheader/c4/c4core_all.hpp) | ||
@@ -95,7 +95,10 @@ c4_add_library(c4core | ||
SOURCE_ROOT ${C4CORE_SRC_DIR} | ||
SOURCES ${C4CORE_SRC_FILES} | ||
) | ||
-if(NOT C4CORE_WITH_FASTFLOAT) | ||
+if(C4CORE_WITH_FASTFLOAT) | ||
+ find_package(FastFloat REQUIRED CONFIG) | ||
+ target_link_libraries(c4core PUBLIC "FastFloat::fast_float") | ||
+else() | ||
target_compile_definitions(c4core PUBLIC -DC4CORE_NO_FAST_FLOAT) | ||
endif() | ||
if(C4CORE_NO_DEBUG_BREAK) | ||
diff --git a/src/c4/ext/fast_float.hpp b/src/c4/ext/fast_float.hpp | ||
index 77fac4f..db14534 100644 | ||
--- a/src/c4/ext/fast_float.hpp | ||
+++ b/src/c4/ext/fast_float.hpp | ||
@@ -18,7 +18,7 @@ | ||
# pragma GCC diagnostic ignored "-Wold-style-cast" | ||
#endif | ||
|
||
-#include "c4/ext/fast_float_all.h" | ||
+#include "fast_float/fast_float.h" | ||
|
||
#ifdef _MSC_VER | ||
# pragma warning(pop) |