summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2008-12-10 16:30:51 (GMT)
committerDavid Cole <david.cole@kitware.com>2008-12-10 16:30:51 (GMT)
commit4f217f0361a93335b279fe231392ddc6ee06a115 (patch)
tree217ac6f6754314c70312dde35a6e831402bcdb10 /Tests
parent227c86d8cc8e5c00f7deae095480676b8ca6aa96 (diff)
downloadCMake-4f217f0361a93335b279fe231392ddc6ee06a115.zip
CMake-4f217f0361a93335b279fe231392ddc6ee06a115.tar.gz
CMake-4f217f0361a93335b279fe231392ddc6ee06a115.tar.bz2
BUG: Prevent KWStyle portion of ExternalProject test from configuring, building, installing and testing on WATCOM dashboards. WATCOM STL support is still under development.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/ExternalProject/CMakeLists.txt55
1 files changed, 35 insertions, 20 deletions
diff --git a/Tests/ExternalProject/CMakeLists.txt b/Tests/ExternalProject/CMakeLists.txt
index 00fffc9..e31a0b6 100644
--- a/Tests/ExternalProject/CMakeLists.txt
+++ b/Tests/ExternalProject/CMakeLists.txt
@@ -16,6 +16,14 @@ set(prefix "${install_dir}")
#
include("${CMAKE_CURRENT_SOURCE_DIR}/TryCheckout.cmake")
+if(NOT DEFINED can_build_kwstyle)
+ if(WATCOM)
+ set(can_build_kwstyle 0)
+ else()
+ set(can_build_kwstyle 1)
+ endif()
+endif()
+
if(NOT DEFINED can_use_cvs)
try_cvs_checkout(
":pserver:anonymous:cmake@www.cmake.org:/cvsroot/CMake"
@@ -35,6 +43,7 @@ if(NOT DEFINED can_use_svn)
set(can_use_svn ${can_use_svn} CACHE STRING "Was try_svn_checkout successful?")
endif()
+message(STATUS "can_build_kwstyle='${can_build_kwstyle}'")
message(STATUS "can_use_cvs='${can_use_cvs}'")
message(STATUS "can_use_svn='${can_use_svn}'")
@@ -152,22 +161,24 @@ if(can_use_cvs)
INSTALL_COMMAND ""
)
- # Live CVS / HEAD (no CVS_TAG):
- #
- set(proj KWStyle-CVSHEAD)
- add_external_project(${proj}
- CVS_REPOSITORY ":pserver:anoncvs@public.kitware.com:/cvsroot/KWStyle"
- CVS_MODULE "KWStyle"
- CONFIGURE_ARGS "\"-DCMAKE_INSTALL_PREFIX:PATH=${prefix}\" -G \"${CMAKE_GENERATOR}\" \"${source_dir}/${proj}\""
- DEPENDS "EmptyNoOpProject"
- DEPENDS "TutorialStep5-Local"
- DEPENDS "TutorialStep1-LocalTAR"
- DEPENDS "TutorialStep1-LocalNoDirTAR"
- DEPENDS "TutorialStep1-LocalTGZ"
- DEPENDS "TutorialStep1-LocalNoDirTGZ"
- DEPENDS "TutorialStep1-20081201"
- DEPENDS "kwsys-from-CMake-2-6-2"
- )
+ if(can_build_kwstyle)
+ # Live CVS / HEAD (no CVS_TAG):
+ #
+ set(proj KWStyle-CVSHEAD)
+ add_external_project(${proj}
+ CVS_REPOSITORY ":pserver:anoncvs@public.kitware.com:/cvsroot/KWStyle"
+ CVS_MODULE "KWStyle"
+ CONFIGURE_ARGS "\"-DCMAKE_INSTALL_PREFIX:PATH=${prefix}\" -G \"${CMAKE_GENERATOR}\" \"${source_dir}/${proj}\""
+ DEPENDS "EmptyNoOpProject"
+ DEPENDS "TutorialStep5-Local"
+ DEPENDS "TutorialStep1-LocalTAR"
+ DEPENDS "TutorialStep1-LocalNoDirTAR"
+ DEPENDS "TutorialStep1-LocalTGZ"
+ DEPENDS "TutorialStep1-LocalNoDirTGZ"
+ DEPENDS "TutorialStep1-20081201"
+ DEPENDS "kwsys-from-CMake-2-6-2"
+ )
+ endif()
endif()
@@ -242,8 +253,10 @@ if(can_use_cvs)
add_test(kwsys-from-CMake-2-6-2-BuildTreeTest
"${build_dir}/kwsys-from-CMake-2-6-2/kwsysTestProcess" 1)
- add_test(KWStyle-CVSHEAD-BuildTreeTest
- "${build_dir}/KWStyle-CVSHEAD/KWStyle" -xml "${kwstyleXmlFile}" "${header}")
+ if(can_build_kwstyle)
+ add_test(KWStyle-CVSHEAD-BuildTreeTest
+ "${build_dir}/KWStyle-CVSHEAD/KWStyle" -xml "${kwstyleXmlFile}" "${header}")
+ endif()
endif()
if(can_use_svn)
@@ -264,8 +277,10 @@ add_test(TutorialStep5-InstallTreeTest
"${install_dir}/bin/Tutorial" 49)
if(can_use_cvs)
- add_test(KWStyle-InstallTreeTest
- "${install_dir}/bin/KWStyle" -xml "${kwstyleXmlFile}" "${header}")
+ if(can_build_kwstyle)
+ add_test(KWStyle-InstallTreeTest
+ "${install_dir}/bin/KWStyle" -xml "${kwstyleXmlFile}" "${header}")
+ endif()
endif()
if(can_use_svn)