From 887b0f6d86e3e20fa85b8a9507656b88bb7ee4fa Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de>
Date: Thu, 19 Nov 2020 20:59:58 +0100
Subject: [PATCH] ctd

---
 cmake/BornAgain/NixInstall.cmake | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/cmake/BornAgain/NixInstall.cmake b/cmake/BornAgain/NixInstall.cmake
index 56f8402578d..807997950f1 100644
--- a/cmake/BornAgain/NixInstall.cmake
+++ b/cmake/BornAgain/NixInstall.cmake
@@ -12,20 +12,18 @@ install(FILES
 
 if(NOT BORNAGAIN_APPLE_BUNDLE AND NOT BUILD_DEBIAN)
     # Create bin directory for links.
-    install(CODE "
-            FILE(MAKE_DIRECTORY \"${CMAKE_INSTALL_PREFIX}/${destination_bin}\")
-            "
+    install(CODE "FILE(MAKE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${destination_bin})"
         COMPONENT Runtime)
     # Make links.
     install(CODE "
         execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink
-        \"../${destination_libexec}/thisbornagain.sh\" \"thisbornagain.sh\"
-        WORKING_DIRECTORY \"${CMAKE_INSTALL_PREFIX}/${destination_bin}\")
+        ../${destination_libexec}/thisbornagain.sh thisbornagain.sh
+        WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${destination_bin})
         " COMPONENT Runtime)
     install(CODE "
         execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink
-        \"../${destination_libexec}/thisbornagain.csh\" \"thisbornagain.csh\"
-        WORKING_DIRECTORY \"${CMAKE_INSTALL_PREFIX}/${destination_bin}\")
+        ../${destination_libexec}/thisbornagain.csh thisbornagain.csh
+        WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${destination_bin})
         " COMPONENT Runtime)
 else()
 
-- 
GitLab