This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch json library to support older versions of gcc (#598)
* patch working * wip * fix patcher * remove debug message: * cleanup * fix typo
- Loading branch information
1 parent
4126806
commit 456db62
Showing
2 changed files
with
17 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
set(FILE_NAME ${CMAKE_BINARY_DIR}/include/nlohmann/detail/macro_scope.hpp) | ||
file(READ ${FILE_NAME} FILE_CONTENTS) | ||
string(REPLACE | ||
"#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 40900" | ||
"#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 40805" | ||
REWRITTEN_FILE | ||
"${FILE_CONTENTS}" | ||
) | ||
file(WRITE ${FILE_NAME} "${REWRITTEN_FILE}") | ||
message(STATUS "json library gcc minimum version number patched") |
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