Commit 568ddca7 authored by Simon Morlat's avatar Simon Morlat

Fix windows build by tolerating "was deprecated" warnings.

parent 0479111c
......@@ -28,7 +28,8 @@ set(BCTOOLBOX_C_SOURCE_FILES
vconnect.c
)
set(BCTOOLBOX_CXX_SOURCE_FILES containers/map.cc)
set(BCTOOLBOX_CXX_SOURCE_FILES containers/map.cc)
if(HAVE_EXECINFO)
list(APPEND BCTOOLBOX_CXX_SOURCE_FILES utils/exception.cc)
......@@ -224,3 +225,10 @@ if(ENABLE_SHARED)
)
endif()
endif()
if(MSVC)
#disable "was deprecated" warnings of windows compiler (typically using strcpy_s instead of strcpy and stupid things like this)
target_compile_options(bctoolbox PRIVATE "/wd4996")
target_compile_options(bctoolbox-tester PRIVATE "/wd4996")
endif()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment