From 3a81832bb3ae22f6251ab810fbd17a7ec57ff9bb Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 28 Apr 2005 11:47:48 -0400 Subject: BUG: Avoid infinite loop during installation. --- Tests/SimpleInstall/CMakeLists.txt | 4 ++++ Tests/SimpleInstallS2/CMakeLists.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Tests/SimpleInstall/CMakeLists.txt b/Tests/SimpleInstall/CMakeLists.txt index 2680ddd..02c5c3c 100644 --- a/Tests/SimpleInstall/CMakeLists.txt +++ b/Tests/SimpleInstall/CMakeLists.txt @@ -4,6 +4,10 @@ SET(CMAKE_VERBOSE_MAKEFILE 1) SET(EXECUTABLE_OUTPUT_PATH "${TestSimpleInstall_BINARY_DIR}/ExecPath") SET(LIBRARY_OUTPUT_PATH "${EXECUTABLE_OUTPUT_PATH}") +# Skip the dependency that causes a build when installing. This +# avoids infinite loops when the post-build rule below installs. +SET(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY 1) + SET(CMAKE_DEBUG_POSTFIX "_test_debug_postfix") SET(EXTRA_INSTALL_FLAGS) diff --git a/Tests/SimpleInstallS2/CMakeLists.txt b/Tests/SimpleInstallS2/CMakeLists.txt index 2680ddd..02c5c3c 100644 --- a/Tests/SimpleInstallS2/CMakeLists.txt +++ b/Tests/SimpleInstallS2/CMakeLists.txt @@ -4,6 +4,10 @@ SET(CMAKE_VERBOSE_MAKEFILE 1) SET(EXECUTABLE_OUTPUT_PATH "${TestSimpleInstall_BINARY_DIR}/ExecPath") SET(LIBRARY_OUTPUT_PATH "${EXECUTABLE_OUTPUT_PATH}") +# Skip the dependency that causes a build when installing. This +# avoids infinite loops when the post-build rule below installs. +SET(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY 1) + SET(CMAKE_DEBUG_POSTFIX "_test_debug_postfix") SET(EXTRA_INSTALL_FLAGS) -- cgit v0.12