Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
continue emptying the surf_routing files
[simgrid.git] / teshsuite / xbt / CMakeLists.txt
index 3af1d9d5b7bf87b6ac7bd5927b0af24b3adb9260..da0f1a1e88be1754205b6895b7f3d39b607586c6 100644 (file)
@@ -27,7 +27,7 @@ if(NOT enable_debug)
 endif()
 
 if(HAVE_MMALLOC)
-  if(${ARCH_32_BITS})
+  if(CMAKE_SIZEOF_VOID_P EQUAL 4) # 32 bits
     ADD_TESH(tesh-xbt-mmalloc-32 --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/xbt/mmalloc --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/xbt/mmalloc mmalloc_32.tesh)
   else()
     ADD_TESH(tesh-xbt-mmalloc-64 --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/xbt/mmalloc --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/xbt/mmalloc mmalloc_64.tesh)