Permalink
Browse files

handle config types in dashboard scripts

  • Loading branch information...
1 parent 449fe46 commit 6cb00f46800837bb3a584febbb50868c64ae2a07 @rpavlik committed Jan 26, 2011
Showing with 11 additions and 0 deletions.
  1. +6 −0 CreateDashboardScripts.cmake
  2. +5 −0 DashboardScript.cmake.in
@@ -165,6 +165,12 @@ function(create_dashboard_scripts)
endif()
set(_msg)
+
+ if(NOT DASHBOARDSCRIPT_BUILD_CONFIGURATION)
+ set(DASHBOARDSCRIPT_BUILD_CONFIGURATION "RelWithDebInfo")
+ endif()
+ set(DASHBOARDSCRIPT_BUILD_CONFIGURATION "${DASHBOARDSCRIPT_BUILD_CONFIGURATION}" CACHE STRING "Build configuration to use for dashboard builds by default")
+ mark_as_advanced(DASHBOARDSCRIPT_BUILD_CONFIGURATION)
foreach(DASHBOARDSCRIPT_DASH_TYPE Nightly Continuous Experimental)
# If given a cache template, configure it
@@ -42,6 +42,11 @@ set(CTEST_UPDATE_TYPE "@UPDATE_TYPE@")
set(CTEST_UPDATE_COMMAND "@UPDATE_COMMAND@")
set(CTEST_UPDATE_OPTIONS "@UPDATE_OPTIONS@")
+if((NOT CTEST_CONFIGURATION_TYPE) OR (NOT CTEST_BUILD_CONFIGURATION))
+ set(CTEST_BUILD_CONFIGURATION "@DASHBOARDSCRIPT_BUILD_CONFIGURATION@")
+ set(CTEST_CONFIGURATION_TYPE "@DASHBOARDSCRIPT_BUILD_CONFIGURATION@")
+endif()
+
# Avoid non-ascii characters in tool output.
set(ENV{LC_ALL} C)

0 comments on commit 6cb00f4

Please sign in to comment.