X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b00299a2048948e38484e10cda644c3436ff593f..36d6876bb57b051b1434737450f7177c9b7055f2:/buildtools/Cmake/CompleteInFiles.cmake diff --git a/buildtools/Cmake/CompleteInFiles.cmake b/buildtools/Cmake/CompleteInFiles.cmake index 3b7ac73a6c..e34c8d0ecd 100644 --- a/buildtools/Cmake/CompleteInFiles.cmake +++ b/buildtools/Cmake/CompleteInFiles.cmake @@ -1,3 +1,8 @@ +set(CMAKE_MODULE_PATH +${CMAKE_MODULE_PATH} +${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/Modules +) + # x86_64 # x86 # i.86 @@ -322,7 +327,11 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin") endif(CMAKE_SYSTEM_NAME MATCHES "Darwin") if(WIN32) - set(mcsc_flags "-D_XBT_WIN32 -I${CMAKE_HOME_DIRECTORY}/include/xbt -I${CMAKE_HOME_DIRECTORY}/src/xbt") + if(ARCH_32_BITS) + set(mcsc_flags "-D_XBT_WIN32 -D_I_X86_ -I${CMAKE_HOME_DIRECTORY}/include/xbt -I${CMAKE_HOME_DIRECTORY}/src/xbt") + else(ARCH_32_BITS) + set(mcsc_flags "-D_XBT_WIN32 -D_AMD64_ -I${CMAKE_HOME_DIRECTORY}/include/xbt -I${CMAKE_HOME_DIRECTORY}/src/xbt") + endif(ARCH_32_BITS) endif(WIN32) IF(CMAKE_CROSSCOMPILING) @@ -432,8 +441,8 @@ else(BIGENDIAN) set(GRAS_BIGENDIAN 0) endif(BIGENDIAN) -# The syntax of this magic string is given in src/gras/DataDesc/ddt_convert.c -# It kinda matches the values that the gras_arch_desc_t structure can take +# The syntax of this magic string is given in src/xbt/datadesc/ddt_convert.c +# It kinda matches the values that the xbt_arch_desc_t structure can take # Basically, the syntax is one char l or B for endianness (little or Big) # then there is a bunch of blocks separated by _. @@ -452,7 +461,7 @@ endif(BIGENDIAN) # formalism to another. Only the GRAS_ARCH is transfered in the # stream, and it it of cruxial importance to keep these detection # information here synchronized with the data hardcoded in the -# source in src/gras/DataDesc/ddt_convert.c +# source in src/xbt/datadesc/ddt_convert.c # If you add something here (like a previously unknown architecture), # please add it to the source code too.