[Cmake-commits] CMake branch, dashboard, updated. 523fec522a46967717252a6c7950903505502d13

Brad King brad.king at kitware.com
Thu Nov 1 09:58:36 EDT 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, dashboard has been updated
       via  523fec522a46967717252a6c7950903505502d13 (commit)
      from  7ecf596177da24fde6ce50f00c203baf573684db (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=523fec522a46967717252a6c7950903505502d13
commit 523fec522a46967717252a6c7950903505502d13
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Thu Nov 1 09:57:29 2012 -0400
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Thu Nov 1 09:57:33 2012 -0400

    cmake_common: Do not assume we are in CTEST_SCRIPT_DIRECTORY
    
    We know that kwsys_common.cmake is next to cmake_common.cmake, but do
    not assume both are in CTEST_SCRIPT_DIRECTORY.  Instead compute the
    location of kwsys_common from the location of cmake_common.

diff --git a/cmake_common.cmake b/cmake_common.cmake
index f9e9e72..090e844 100644
--- a/cmake_common.cmake
+++ b/cmake_common.cmake
@@ -403,7 +403,8 @@ endwhile()
 
 #-----------------------------------------------------------------------------
 # Run KWSys dashboard script too.
-if(EXISTS ${CTEST_SCRIPT_DIRECTORY}/kwsys_common.cmake
+get_filename_component(cmake_common_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
+if(EXISTS ${cmake_common_dir}/kwsys_common.cmake
     AND "${dashboard_model}" MATCHES "^(Nightly|Experimental)$"
     AND NOT dashboard_no_KWSys)
   if(COMMAND dashboard_hook_KWSys)

-----------------------------------------------------------------------

Summary of changes:
 cmake_common.cmake |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list