--- src/CMakeLists.txt.orig	2019-07-28 18:28:58 UTC
+++ src/CMakeLists.txt
@@ -913,6 +913,6 @@ install(FILES
 
 # Fix include paths for all public headers.
 # Note: This is a temporary fix until the new C++ API is in place.
-install(CODE "execute_process(COMMAND
+install(CODE "execute_process(COMMAND sh
                 ${CMAKE_CURRENT_LIST_DIR}/fix-install-headers.sh
-                ${CMAKE_INSTALL_PREFIX})")
+                \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}\")")
