X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9bfe9f6aeab2be83b8bb7ac1136d7eb6a882e12b..c4867f73c97be8b270d5b47f27daf9c00ed9b07e:/buildtools/Cmake/CompleteInFiles.cmake diff --git a/buildtools/Cmake/CompleteInFiles.cmake b/buildtools/Cmake/CompleteInFiles.cmake index f1ff59fe89..04a2a3ef9a 100644 --- a/buildtools/Cmake/CompleteInFiles.cmake +++ b/buildtools/Cmake/CompleteInFiles.cmake @@ -226,6 +226,9 @@ if(enable_model-checking AND HAVE_MMALLOC) SET(MMALLOC_WANT_OVERRIDE_LEGACY 1) include(FindLibunwind) else() + if(enable_model-checking) + message(STATUS "Warning: support for model-checking has been disabled because HAVE_MMALLOC is false") + endif() SET(HAVE_MC 0) SET(MMALLOC_WANT_OVERRIDE_LEGACY 0) endif() @@ -495,7 +498,7 @@ endif() ############### ## GIT version check ## -if(EXISTS ${CMAKE_HOME_DIRECTORY}/.git/ AND NOT WIN32) +if(EXISTS ${CMAKE_HOME_DIRECTORY}/.git/) execute_process(COMMAND git remote COMMAND head -n 1 WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/.git/ @@ -528,6 +531,8 @@ if(EXISTS ${CMAKE_HOME_DIRECTORY}/.git/ AND NOT WIN32) message(STATUS "Git date: ${GIT_DATE}") string(REGEX REPLACE " .*" "" GIT_VERSION "${GIT_VERSION}") endif() +elseif(EXISTS ${CMAKE_HOME_DIRECTORY}/.gitversion) + FILE(STRINGS ${CMAKE_HOME_DIRECTORY}/.gitversion GIT_VERSION) endif() if(release) @@ -889,8 +894,6 @@ set(generated_files_to_clean ${CMAKE_BINARY_DIR}/bin/colorize ${CMAKE_BINARY_DIR}/bin/simgrid_update_xml ${CMAKE_BINARY_DIR}/examples/smpi/tracing/smpi_traced.trace - ${CMAKE_BINARY_DIR}/src/supernovae_sg.c - ${CMAKE_BINARY_DIR}/src/supernovae_smpi.c ) if("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_HOME_DIRECTORY}")