install zm.conf as zm.conf.new if zm.conf already exists
This commit is contained in:
parent
fc6a6aeaa3
commit
796bad55a3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue