X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1c236828602b8dac5e0b77b7296d69e06531c379..2956ce66cb026ff6b1365c223c209abae0db2532:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ab35ffa19..0f07263f15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,7 @@ endif() ## Check the C/C++ standard that we need ## See also tools/cmake/Flags.cmake that sets our paranoid warning flags if (MSVC) - message("-- MicroSoft Visual C detected. Good luck.") + message("-- You are compiling SimGrid with MicroSoft Visual C. Good luck.") else() # gcc or clang INCLUDE(CheckCCompilerFlag) CHECK_C_COMPILER_FLAG(-fstack-cleaner HAVE_C_STACK_CLEANER) @@ -173,7 +173,11 @@ endif() ### Check 32bits or 64bits INCLUDE (CheckTypeSize) +CHECK_TYPE_SIZE("int" SIZEOF_INT) +CHECK_TYPE_SIZE("long" SIZEOF_LONG) +CHECK_TYPE_SIZE("long long" SIZEOF_LONGLONG) CHECK_TYPE_SIZE("void*" SIZEOF_VOIDSTAR) +message (" Data model: (int)=${SIZEOF_INT} (long)=${SIZEOF_LONG} (long long)=${SIZEOF_LONGLONG} (void*)=${SIZEOF_VOIDSTAR}") IF(SIZEOF_VOIDSTAR EQUAL 4) SET(ARCH_32_BITS 1) ELSE()