]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
only install config not exists
authorBastian Dehn <hhaalo@arcor.de>
Sun, 10 Mar 2024 10:56:11 +0000 (11:56 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 10 Mar 2024 10:56:11 +0000 (11:56 +0100)
src/CMakeLists.txt

index 302742961096c5f054b9cb2bd4423d42bfd9bcb5..c3314e1ba36f7d3ae987e5acc3560c64cedcd56b 100644 (file)
@@ -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})