From ef2e6b88ea43a4c3a00069820d0e25070037b842 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 6 Aug 2003 10:42:51 -0400 Subject: [PATCH] ENH: Install test is now enabled when CMAKE_INSTALL_PREFIX is CMake_BINARY_DIR/Tests/TestInstall/Prefix to keep test in one directory. --- Source/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 346a08779..80b8e6fb1 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -361,14 +361,14 @@ IF(BUILD_TESTING) ENDIF (APPLE) IF(UNIX) - IF("x${CMAKE_INSTALL_PREFIX}" MATCHES "^x${CMake_BINARY_DIR}/InstallTest$") + IF("x${CMAKE_INSTALL_PREFIX}" MATCHES "^x${CMake_BINARY_DIR}/Tests/TestInstall/Prefix$") CONFIGURE_FILE( ${CMake_SOURCE_DIR}/Tests/TestInstall.sh.in ${CMake_BINARY_DIR}/Tests/TestInstall/TestInstall.sh @ONLY IMMEDIATE ) ADD_TEST(Install /bin/sh ${CMake_BINARY_DIR}/Tests/TestInstall/TestInstall.sh) - ENDIF("x${CMAKE_INSTALL_PREFIX}" MATCHES "^x${CMake_BINARY_DIR}/InstallTest$") + ENDIF("x${CMAKE_INSTALL_PREFIX}" MATCHES "^x${CMake_BINARY_DIR}/Tests/TestInstall/Prefix$") ENDIF(UNIX) ENDIF(BUILD_TESTING)