about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/sql/mariadb/cmake-includedir.patch
blob: 0c4fe7d321e22433d12a05c6b2b58cb75f1cbccf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- a/include/CMakeLists.txt	2017-12-25 05:59:07.204144374 +0100
+++ b/include/CMakeLists.txt	2017-12-25 05:59:26.339552817 +0100
@@ -94,7 +94,7 @@
 ENDIF()
 
 MACRO(INSTALL_COMPAT_HEADER file footer)
-  INSTALL(CODE "FILE(WRITE \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${INSTALL_INCLUDEDIR}/${file}
+  INSTALL(CODE "FILE(WRITE ${INSTALL_INCLUDEDIR}/${file}
 \"/* Do not edit this file directly, it was auto-generated by cmake */
 
 #warning This file should not be included by clients, include only <mysql.h>