Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ArthurSonzogni/nlohmann_json_cmake_fetchcontent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthurSonzogni <sonzogniarthur@gmail.com>2022-09-25 14:40:22 +0300
committerArthurSonzogni <sonzogniarthur@gmail.com>2022-09-25 15:55:44 +0300
commit91292c8ed411f928ee7b9f6a3981067e317f0083 (patch)
tree47df8fd9d8b1eca2e1c90d190fe647de0732e805
parent24aa551505250ef69d7c918bd1e4f165907a35e8 (diff)
Fix multi-headers.
-rwxr-xr-xupdate.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/update.py b/update.py
index e55e6ac..23ca1f6 100755
--- a/update.py
+++ b/update.py
@@ -75,6 +75,9 @@ for tag, url, body in release_url_map[::-1]:
subprocess.call(['git', 'add', './include/nlohmann/json.hpp'])
if has_json_fwd:
subprocess.call(['git', 'add', './include/nlohmann/json_fwd.hpp'])
+ # Update the nlohman json options.
+ subprocess.call([ 'sed', '-i', '-e', 's/library.\" ON/library.\" OFF/g', './CMakeLists.txt'])
+ subprocess.call(['git', 'add', './CMakeLists.txt'])
# Update the README.md:
subprocess.call([ 'sed', '-i', '-e', 's/GIT_TAG .*)/GIT_TAG '+ tag + ')/g', './README.md'])