X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f1b22d20918d4ccd703690a19e476429cfa124f3..0cd4363334ea0ffe5ca162745a21fa0025041d7e:/CMakeLists.txt?ds=sidebyside diff --git a/CMakeLists.txt b/CMakeLists.txt index 53afb841ef..cff719b117 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,5 @@ -cmake_minimum_required(VERSION 2.8.8) +cmake_minimum_required(VERSION 2.6) +# Java requires 2.8.6 project(SimGrid C CXX) @@ -16,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)