From: mquinson Date: Thu, 24 Dec 2009 09:42:24 +0000 (+0000) Subject: Remove the version built from buildname so that cdash notices that it's another build... X-Git-Tag: SVN~739 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1c747110078ac37d56e6c8200a715291bc0eb3ca Remove the version built from buildname so that cdash notices that it's another build of the same platform git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6987 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/buildtools/Cmake/CMakeLists.txt b/buildtools/Cmake/CMakeLists.txt index ae769e5c36..f6d54cf519 100644 --- a/buildtools/Cmake/CMakeLists.txt +++ b/buildtools/Cmake/CMakeLists.txt @@ -9,10 +9,15 @@ OPTION( SIMGRID_WITH_PTHREAD "Use pthread as context support." OFF ) OPTION( SIMGRID_USE_GTNETS "Build SimGrid with GTNets support." OFF ) +### Display the version +find_program(CAT NAMES cat) +exec_program("${CAT}" ARGS "version" OUTPUT_VARIABLE VERSION) +message("svn version: " ${VERSION}) + + ### Check 32bits or 64bits INCLUDE (CheckTypeSize) CHECK_TYPE_SIZE("long" SIZEOF_LONG) -#message("SIZEOF_LONG : ${SIZEOF_LONG}") IF(SIZEOF_LONG EQUAL 4) SET(ARCH_32_BITS 1) ELSE(SIZEOF_LONG EQUAL 4) diff --git a/buildtools/Cmake/CTestConfig.cmake b/buildtools/Cmake/CTestConfig.cmake index f7da28faf0..45ab81c1f2 100644 --- a/buildtools/Cmake/CTestConfig.cmake +++ b/buildtools/Cmake/CTestConfig.cmake @@ -38,7 +38,8 @@ getuname(node -n) getuname(osrel -r) getuname(cpu -m) -SET (BUILDNAME "${VERSION}-${osname}-${DISTRIB2}-${cpu}") +#SET (BUILDNAME "${VERSION}-${osname}-${DISTRIB2}-${cpu}") +SET (BUILDNAME "${osname}-${DISTRIB2}-${cpu}") SET (SITE "${node}") SET (CTEST_PROJECT_NAME "Simgrid") SET (CTEST_DROP_METHOD "http")