if(enable_model-checking AND HAVE_MMAP)
SET(HAVE_MC 1)
SET(MMALLOC_WANT_OVERIDE_LEGACY 1)
+else(enable_model-checking AND HAVE_MMAP)
+ SET(HAVE_MC 0)
+ SET(MMALLOC_WANT_OVERIDE_LEGACY 0)
endif(enable_model-checking AND HAVE_MMAP)
if(enable_lua)
configure_file("${PROJECT_DIRECTORY}/buildtools/Cmake/tracing_config.h.in" "${PROJECT_DIRECTORY}/include/instr/tracing_config.h" @ONLY IMMEDIATE)
configure_file("${PROJECT_DIRECTORY}/include/instr/tracing_config.h" "${PROJECT_DIRECTORY}/include/instr/tracing_config.h" @ONLY IMMEDIATE)
-if(NOT prefix)
- set(prefix /usr/local)
-endif(NOT prefix)
-
set(top_srcdir "${PROJECT_DIRECTORY}")
set(srcdir "${PROJECT_DIRECTORY}/src")
${AMOK_SRC}
)
-if(enable_model-checking AND HAVE_MMAP)
+if(HAVE_MC)
set(simgrid_sources
- ${simgrid_source}
+ ${simgrid_sources}
${MC_SRC}
)
-endif(enable_model-checking AND HAVE_MMAP)
+endif(HAVE_MC)
### Gras Lib sources
set(gras_sources
-set(CMAKE_INSTALL_PREFIX ${prefix} CACHE TYPE INTERNAL FORCE)
+set(CMAKE_INSTALL_PREFIX "${prefix}" CACHE TYPE INTERNAL FORCE)
#########################################
### Fill in the "make install" target ###
set(BIBTEX2HTML ${BIBTEX2HTML} CACHE PATH "Path to bibtex2html")
set(gtnets_path ${gtnets_path} CACHE PATH "Path to gtnets lib")
-set(prefix ${prefix} CACHE PATH "Path where to install project")
+
+if(NOT prefix)
+ set(prefix "/usr/local/simgrid/" CACHE PATH "Path where to install project")
+else(NOT prefix)
+ set(prefix ${prefix} CACHE PATH "Path where to install project")
+endif(NOT prefix)
+
set(with_context ${with_context} CACHE TYPE INTERNAL FORCE)
if(NOT with_context)
message("OPTIONS : ${MEMORYCHECK_COMMAND_OPTIONS}")
message("PERL : ${PERL_EXECUTABLE}")
endif(enable_memcheck)
+ message("")
+ message("HAVE_MMAP : ${HAVE_MMAP}")
+ message("HAVE_MC : ${HAVE_MC}")
+ message("MMALLOC_WANT_OVERIDE_LEGACY : ${MMALLOC_WANT_OVERIDE_LEGACY}")
message("________________________________________________________________________________")
message("________________________________________________________________________________ DEBUG END")
message("")