From 01efdf701f5f3030426ff3dae727f7168ffd3768 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 10 Mar 2024 11:56:11 +0100 Subject: [PATCH] only install config not exists --- src/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}) -- 2.39.5