X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/746d9f705cc69e46256eb4e2d5f8006ab0dbd4d5..0cd4363334ea0ffe5ca162745a21fa0025041d7e:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f07263f15..cff719b117 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,9 @@ endif() ## See also tools/cmake/Flags.cmake that sets our paranoid warning flags if (MSVC) message("-- You are compiling SimGrid with MicroSoft Visual C. Good luck.") + + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_SCL_SECURE_NO_WARNINGS") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_SCL_SECURE_NO_WARNINGS") else() # gcc or clang INCLUDE(CheckCCompilerFlag) CHECK_C_COMPILER_FLAG(-fstack-cleaner HAVE_C_STACK_CLEANER)