From 2d7f6ab48470379742caf96217ab456abc172380 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 12 Apr 2016 11:25:44 +0200 Subject: [PATCH] Don't overwrite config files on *NIX fixes #11542 --- cmake/InstallConfig.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/InstallConfig.cmake b/cmake/InstallConfig.cmake index e4af25d5e..7f70177f9 100644 --- a/cmake/InstallConfig.cmake +++ b/cmake/InstallConfig.cmake @@ -26,7 +26,7 @@ function(install_if_not_exists src dest) string(REPLACE "/" "\\\\" nsis_dest_dir "${real_dest}") string(REPLACE "/" "\\\\" nsis_dest "${real_dest}/${basename_dest}") install(CODE " - if(\${CMAKE_INSTALL_PREFIX} MATCHES .*/_CPack_Packages/.* OR NOT EXISTS \"\$ENV{DESTDIR}${dest}/${src_name}\") + if(\${CMAKE_INSTALL_PREFIX} MATCHES .*/_CPack_Packages/.* OR NOT EXISTS \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/\${skel_prefix}${dest}/${src_name}\") message(STATUS \"Installing: \$ENV{DESTDIR}${dest}/${src_name}\") if(\${CMAKE_INSTALL_PREFIX} MATCHES .*/_CPack_Packages/.*) set(skel_prefix \"share/skel/\")