diff --git a/cmake/BornAgain/NixInstall.cmake b/cmake/BornAgain/NixInstall.cmake
index 56f8402578de8a0297286c3ab8e1fe1b79f65557..807997950f105771ea6d69baf0b3a88224de62fb 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()