From 5523c4a967787b0fdc715e886eb3513e498baa41 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 7 Aug 2003 16:54:45 -0400 Subject: BUG: fix the test --- Tests/Complex/CMakeLists.txt | 12 ++++++------ Tests/ComplexOneConfig/CMakeLists.txt | 12 ++++++------ Tests/ComplexRelativePaths/CMakeLists.txt | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Tests/Complex/CMakeLists.txt b/Tests/Complex/CMakeLists.txt index aa376e5..2aaa407 100644 --- a/Tests/Complex/CMakeLists.txt +++ b/Tests/Complex/CMakeLists.txt @@ -49,12 +49,12 @@ LOAD_CACHE(${Complex_SOURCE_DIR}/Cache INCLUDE_INTERNALS CACHE_TEST_VAR_INTERNAL) -LOAD_CACHE(${Complex_BINARY_DIR} READ_WITH_PREFIX foo CACHE_TEST_VAR_INTERNAL) -IF(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar) - MESSAGE("Load cache worked") -ELSE(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar) - MESSAGE(FATAL_ERROR "Load cache with prefix failed") -ENDIF(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar) +LOAD_CACHE(${Complex_SOURCE_DIR}/Cache READ_WITH_PREFIX foo CACHE_TEST_VAR2) +IF(${fooCACHE_TEST_VAR2} MATCHES bar) + MESSAGE("Load cache worked: ${fooCACHE_TEST_VAR2}") +ELSE(${fooCACHE_TEST_VAR2} MATCHES bar) + MESSAGE(FATAL_ERROR "Load cache with prefix failed: ${fooCACHE_TEST_VAR2}") +ENDIF(${fooCACHE_TEST_VAR2} MATCHES bar) diff --git a/Tests/ComplexOneConfig/CMakeLists.txt b/Tests/ComplexOneConfig/CMakeLists.txt index aa376e5..2aaa407 100644 --- a/Tests/ComplexOneConfig/CMakeLists.txt +++ b/Tests/ComplexOneConfig/CMakeLists.txt @@ -49,12 +49,12 @@ LOAD_CACHE(${Complex_SOURCE_DIR}/Cache INCLUDE_INTERNALS CACHE_TEST_VAR_INTERNAL) -LOAD_CACHE(${Complex_BINARY_DIR} READ_WITH_PREFIX foo CACHE_TEST_VAR_INTERNAL) -IF(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar) - MESSAGE("Load cache worked") -ELSE(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar) - MESSAGE(FATAL_ERROR "Load cache with prefix failed") -ENDIF(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar) +LOAD_CACHE(${Complex_SOURCE_DIR}/Cache READ_WITH_PREFIX foo CACHE_TEST_VAR2) +IF(${fooCACHE_TEST_VAR2} MATCHES bar) + MESSAGE("Load cache worked: ${fooCACHE_TEST_VAR2}") +ELSE(${fooCACHE_TEST_VAR2} MATCHES bar) + MESSAGE(FATAL_ERROR "Load cache with prefix failed: ${fooCACHE_TEST_VAR2}") +ENDIF(${fooCACHE_TEST_VAR2} MATCHES bar) diff --git a/Tests/ComplexRelativePaths/CMakeLists.txt b/Tests/ComplexRelativePaths/CMakeLists.txt index aa376e5..2aaa407 100644 --- a/Tests/ComplexRelativePaths/CMakeLists.txt +++ b/Tests/ComplexRelativePaths/CMakeLists.txt @@ -49,12 +49,12 @@ LOAD_CACHE(${Complex_SOURCE_DIR}/Cache INCLUDE_INTERNALS CACHE_TEST_VAR_INTERNAL) -LOAD_CACHE(${Complex_BINARY_DIR} READ_WITH_PREFIX foo CACHE_TEST_VAR_INTERNAL) -IF(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar) - MESSAGE("Load cache worked") -ELSE(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar) - MESSAGE(FATAL_ERROR "Load cache with prefix failed") -ENDIF(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar) +LOAD_CACHE(${Complex_SOURCE_DIR}/Cache READ_WITH_PREFIX foo CACHE_TEST_VAR2) +IF(${fooCACHE_TEST_VAR2} MATCHES bar) + MESSAGE("Load cache worked: ${fooCACHE_TEST_VAR2}") +ELSE(${fooCACHE_TEST_VAR2} MATCHES bar) + MESSAGE(FATAL_ERROR "Load cache with prefix failed: ${fooCACHE_TEST_VAR2}") +ENDIF(${fooCACHE_TEST_VAR2} MATCHES bar) -- cgit v0.12