Revert back to just installing //etc/zm/zm.conf
This commit is contained in:
parent
67c2784522
commit
6d58fe5d74
|
@ -838,16 +838,17 @@ else(zmconfgen_result EQUAL 0)
|
||||||
endif(zmconfgen_result EQUAL 0)
|
endif(zmconfgen_result EQUAL 0)
|
||||||
|
|
||||||
# Install zm.conf
|
# Install zm.conf
|
||||||
install(CODE "
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/zm.conf" DESTINATION "${ZM_CONFIG_DIR}")
|
||||||
if (NOT EXISTS \"${ZM_CONFIG_DIR}/zm.conf\")
|
#install(CODE "
|
||||||
message(STATUS \"No zm.conf at ${CMAKE_CURRENT_BINARY_DIR}/zm.conf. Will install a new zm.conf\")
|
#if (NOT EXISTS \"${ZM_CONFIG_DIR}/zm.conf\")
|
||||||
install(FILES \"${CMAKE_CURRENT_BINARY_DIR}/zm.conf\" DESTINATION \"${ZM_CONFIG_DIR}\")
|
#message(STATUS \"No zm.conf at ${CMAKE_CURRENT_BINARY_DIR}/zm.conf. Will install a new zm.conf\")
|
||||||
else (NOT EXISTS \"${ZM_CONFIG_DIR}/zm.conf\")
|
#install(FILES \"${CMAKE_CURRENT_BINARY_DIR}/zm.conf\" DESTINATION \"${ZM_CONFIG_DIR}\")
|
||||||
message(STATUS \"Found zm.conf at ${CMAKE_CURRENT_BINARY_DIR}/zm.conf. Not overwriting. Installing zm.conf.new instead.\")
|
#else (NOT EXISTS \"${ZM_CONFIG_DIR}/zm.conf\")
|
||||||
file(RENAME \"${CMAKE_CURRENT_BINARY_DIR}/zm.conf\" \"${CMAKE_CURRENT_BINARY_DIR}/zm.conf.new\")
|
#message(STATUS \"Found zm.conf at ${CMAKE_CURRENT_BINARY_DIR}/zm.conf. Not overwriting. Installing zm.conf.new instead.\")
|
||||||
install(FILES \"${CMAKE_CURRENT_BINARY_DIR}/zm.conf.new\" DESTINATION \"${ZM_CONFIG_DIR}\")
|
#file(RENAME \"${CMAKE_CURRENT_BINARY_DIR}/zm.conf\" \"${CMAKE_CURRENT_BINARY_DIR}/zm.conf.new\")
|
||||||
endif(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
|
# Uninstall target
|
||||||
|
|
Loading…
Reference in New Issue