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:
Diffstat (limited to 'update.py')
-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'])