From f8a187dc832af58f5cfb2377a478d6098da88ec9 Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 11 Mar 2010 17:59:44 +0000 Subject: [PATCH] Enable warnings into windows ... --- salome_adm/cmake_files/FindPLATFORM.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/salome_adm/cmake_files/FindPLATFORM.cmake b/salome_adm/cmake_files/FindPLATFORM.cmake index eaa0eaa75..dd3f44119 100644 --- a/salome_adm/cmake_files/FindPLATFORM.cmake +++ b/salome_adm/cmake_files/FindPLATFORM.cmake @@ -59,7 +59,9 @@ SET(PLATFORM_CPPFLAGS) SET(PLATFORM_LDFLAGS) SET(PLATFORM_LIBADD) IF(WINDOWS) - SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} /W0) + # SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} /W0) + SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_CRT_SECURE_NO_WARNINGS) # To disable windows warnings for strcpy, fopen, ... + SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_SCL_SECURE_NO_WARNINGS) # To disable windows warnings std::copy, std::transform, ... SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -DWNT) SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -DPPRO_NT) # For medfile SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_USE_MATH_DEFINES) # At least for MEDMEM -- 2.39.2