openwsman: CMake: ignore Microsoft deprecations
Add _CRT_NONSTDC_NO_DEPRECATE compile flag to ignore warnings like:
warning C4996: 'strdup': The POSIX name for this item
is deprecated. Instead, use the ISO C and C++ conformant name: _strdup.
@@ -11,7 +11,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR} ${CMAKE_BINA
ADD_DEFINITIONS( -DPACKAGE_PLUGIN_DIR="${PACKAGE_PLUGIN_DIR}" )
if (CMAKE_CXX_COMPILER_ID MATCHES MSVC)
-SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${XML_CFLAGS} -DIGNORE_DUPLICATE_ID -D_CRT_SECURE_NO_WARNINGS" )
+SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${XML_CFLAGS} -DIGNORE_DUPLICATE_ID -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE" )
else (CMAKE_CXX_COMPILER_ID MATCHES MSVC)
SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${XML_CFLAGS} -g -DIGNORE_DUPLICATE_ID" )
endif (CMAKE_CXX_COMPILER_ID MATCHES MSVC)
