From: Bastian Dehn Date: Sun, 10 Mar 2024 10:56:11 +0000 (+0100) Subject: only install config not exists X-Git-Tag: v1.0.0^2~118^2~3 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=01efdf701f5f3030426ff3dae727f7168ffd3768;p=sane-kds-s2000w-net.git only install config not exists --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3027429..c3314e1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -51,8 +51,10 @@ target_link_libraries("sane-kds_s2000w_net" install(TARGETS "sane-kds_s2000w_net" DESTINATION ${CMAKE_LIBRARY_PATH}/sane) -install(FILES "kds_s2000w_net.conf" - DESTINATION ${CONFIG_INSTALL_PATH}) +if(NOT EXISTS ${CONFIG_FILE}) + install(FILES "kds_s2000w_net.conf" + DESTINATION ${CONFIG_INSTALL_PATH}) +endif() set(CPACK_GENERATOR "DEB") set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})