Skip to content

Commit

Permalink
_CRT_SECURE_NO_WARNINGS under b2 and meson
Browse files Browse the repository at this point in the history
  • Loading branch information
zajo committed Aug 21, 2024
1 parent 14c94b2 commit d3de93a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ if not option_enable_examples
endif
endif

if target_machine.system() == 'windows'
add_global_arguments('-D_CRT_SECURE_NO_WARNINGS', language: 'cpp')
endif

compiler = meson.get_compiler('cpp')
compiler_id = compiler.get_id()
if not meson.is_subproject()
Expand Down
4 changes: 2 additions & 2 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ project
<threading>multi
: requirements
<define>BOOST_LEAF_BOOST_AVAILABLE
<define>_CRT_SECURE_NO_WARNINGS
<target-os>windows:<define>_CRT_SECURE_NO_WARNINGS
<threading>single:<define>BOOST_LEAF_NO_THREADS
<toolset>gcc:<cxxflags>"-Wno-delete-non-virtual-dtor -Wno-parentheses"
<toolset>clang:<cxxflags>"-Wno-unused-variable -Wno-delete-non-virtual-dtor -Wno-non-virtual-dtor -Wno-dangling-else"
Expand Down Expand Up @@ -63,11 +63,11 @@ run ctx_handle_all_test.cpp ;
run ctx_handle_some_test.cpp ;
run ctx_remote_handle_all_test.cpp ;
run ctx_remote_handle_some_test.cpp ;
run diagnostic_info_test1.cpp ;
run diagnostic_info_test2.cpp ;
run diagnostic_info_test3.cpp ;
run diagnostic_info_test4.cpp ;
run diagnostic_info_test5.cpp ;
run diagnostic_info_test1.cpp ;
run e_errno_test.cpp ;
run e_LastError_test.cpp ;
run error_code_test.cpp ;
Expand Down

0 comments on commit d3de93a

Please sign in to comment.