[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdesupport/automoc
From:       Alexander Neundorf <neundorf () kde ! org>
Date:       2009-04-21 21:04:27
Message-ID: 1240347867.085487.29126.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 957350 by neundorf:

-add some comments

Alex



 M  +21 -12    KDECTestNightly.cmake  


--- trunk/kdesupport/automoc/KDECTestNightly.cmake #957349:957350
@@ -3,6 +3,7 @@
 # CTEST_SOURCE_DIRECTORY - defaults to $HOME/Dashboards/<CTEST_PROJECT_NAME>/src \
dir/  # CTEST_BINARY_DIRECTORY - defaults to \
$HOME/Dashboards/<CTEST_PROJECT_NAME>/build dir/  # if CTEST_AVOID_SPACES is TRUE, \
the spaces in the path above will be removed. +# CTEST_BUILD_NAME - the name of the \
build as displayed by cdash  
 
 ###########################################################
@@ -29,6 +30,25 @@
 include("${currentDirectory}/CTestConfig.cmake")
 include("${currentDirectory}/CTestCustom.cmake" OPTIONAL)
 
+
+site_name(CTEST_SITE)
+
+if(NOT CTEST_BUILD_NAME)
+   set(CTEST_BUILD_NAME ${CMAKE_SYSTEM_NAME})
+endif(NOT CTEST_BUILD_NAME)
+
+
+if("${CTEST_CMAKE_GENERATOR}" MATCHES Makefile)
+   find_program(MAKE_EXECUTABLE make gmake)
+   set(CTEST_BUILD_COMMAND    "${MAKE_EXECUTABLE}" )
+else("${CTEST_CMAKE_GENERATOR}" MATCHES Makefile)
+   if(NOT DEFINED CTEST_BUILD_COMMAND)
+      message(FATAL_ERROR "CTEST_CMAKE_GENERATOR is set to \
\"${CTEST_CMAKE_GENERATOR}\", but CTEST_BUILD_COMMAND has not been set") +   \
endif(NOT DEFINED CTEST_BUILD_COMMAND) +endif("${CTEST_CMAKE_GENERATOR}" MATCHES \
Makefile) +
+
+############# set up CTEST_SOURCE_DIRECTORY and CTEST_BINARY_DIRECTORY #############
 set(DASHBOARD_DIR "$ENV{HOME}/Dashboards" )
 
 if(NOT DEFINED CTEST_SOURCE_DIRECTORY)
@@ -48,19 +68,8 @@
 endif(NOT DEFINED CTEST_BINARY_DIRECTORY)
 
 
+############### set up VCS support ###################
 
-site_name(CTEST_SITE)
-set(CTEST_BUILD_NAME ${CMAKE_SYSTEM_NAME})
-
-if("${CTEST_CMAKE_GENERATOR}" MATCHES Makefile)
-   find_program(MAKE_EXECUTABLE make gmake)
-   set(CTEST_BUILD_COMMAND    "${MAKE_EXECUTABLE}" )
-else("${CTEST_CMAKE_GENERATOR}" MATCHES Makefile)
-   if(NOT DEFINED CTEST_BUILD_COMMAND)
-      message(FATAL_ERROR "CTEST_CMAKE_GENERATOR is set to \
                \"${CTEST_CMAKE_GENERATOR}\", but CTEST_BUILD_COMMAND has not been \
                set")
-   endif(NOT DEFINED CTEST_BUILD_COMMAND)
-endif("${CTEST_CMAKE_GENERATOR}" MATCHES Makefile)
-
 string(TOLOWER ${CTEST_VCS} _ctest_vcs)
 set(_have_vcs FALSE)
 # only set this if there is no checkout yet


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic