diff options
author | Stephen Kelly <steveire@gmail.com> | 2011-08-24 17:58:00 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2011-08-24 17:58:00 (GMT) |
commit | 99b2aabd460d0c508ffa7b21283a0512e322e717 (patch) | |
tree | 0521e75aad1d23f4686e750a8af09057e11bf6ff /Tests/Module | |
parent | 7ac0ab1f88b66d162a89d055517551b3b7ecd8a6 (diff) | |
download | CMake-99b2aabd460d0c508ffa7b21283a0512e322e717.zip CMake-99b2aabd460d0c508ffa7b21283a0512e322e717.tar.gz CMake-99b2aabd460d0c508ffa7b21283a0512e322e717.tar.bz2 |
Disable the tests for Watcom.
They are timing out and showing up on the dashboard.
Diffstat (limited to 'Tests/Module')
-rw-r--r-- | Tests/Module/GenerateExportHeader/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/Module/GenerateExportHeader/CMakeLists.txt b/Tests/Module/GenerateExportHeader/CMakeLists.txt index 9141471..5372f92 100644 --- a/Tests/Module/GenerateExportHeader/CMakeLists.txt +++ b/Tests/Module/GenerateExportHeader/CMakeLists.txt @@ -2,6 +2,21 @@ cmake_minimum_required(VERSION 2.8.5 FATAL_ERROR) project(GenerateExportHeader) +# Prevent timeout on Watcom by not running the tests. +if ("${CMAKE_COMPILER_ID}" MATCHES Watcom) + file(WRITE + "${CMAKE_CURRENT_BINARY_DIR}/main.cxx" + "int main() { return 0; } + " + ) + + add_executable( + GenerateExportHeader + "${CMAKE_CURRENT_BINARY_DIR}/main.cxx" + ) + return() +endif() + include(CheckCXXCompilerFlag) set( CMAKE_INCLUDE_CURRENT_DIR ON ) |