diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-12 14:14:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-12 14:14:25 +0200 |
commit | fda8db23380e997e08b45a00476c6965ac33c92c (patch) | |
tree | 6f495c0851ffcf29b0caf025df50f33b7036a542 | |
parent | f505a7865a6f338d7dbe8f084d1e8c8d5665a39e (diff) |
Add standard Microsoft warning "disclaimer" to ad hoc C++ recipe projects
-rw-r--r-- | libbuild2/rule-adhoc-cxx.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbuild2/rule-adhoc-cxx.cxx b/libbuild2/rule-adhoc-cxx.cxx index d95994d..547bb69 100644 --- a/libbuild2/rule-adhoc-cxx.cxx +++ b/libbuild2/rule-adhoc-cxx.cxx @@ -464,6 +464,12 @@ namespace build2 ofs << "import imp_libs += build2%lib{build2}" << '\n' << "libs{" << id << "}: cxx{rule} hxx{location} $imp_libs" << '\n' << '\n' + << "if ($cxx.target.system == 'win32-msvc')" << '\n' + << " cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS" << '\n' + << '\n' + << "if ($cxx.class == 'msvc')" << '\n' + << " cxx.coptions += /wd4251 /wd4275 /wd4800" << '\n' + << '\n' << psig << '\n'; ofs.close (); |