From 796bad55a341261a33b94cb6edff9c1fd2275203 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 2 Oct 2015 12:54:25 -0400 Subject: [PATCH] install zm.conf as zm.conf.new if zm.conf already exists --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ca5cf8e05..a8656fe94 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -706,6 +706,8 @@ endif(zmconfgen_result EQUAL 0) # Install zm.conf if(NOT EXISTS "${ZM_CONFIG_DIR}/zm.conf") install(FILES "${CMAKE_CURRENT_BINARY_DIR}/zm.conf" DESTINATION "${ZM_CONFIG_DIR}") +else(NOT EXISTS "${ZM_CONFIG_DIR}/zm.conf") +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/zm.conf.new" DESTINATION "${ZM_CONFIG_DIR}") endif(NOT EXISTS "${ZM_CONFIG_DIR}/zm.conf") # Uninstall target