MantisBT - CMake
View Issue Details
0004993CMakeCMakepublic2007-05-08 12:092008-03-27 21:39
irwin 
Bill Hoffman 
normalmajoralways
closedfixed 
 
 
0004993: "make package" fails to work for absolute INSTALL DESTINATIONs
The result (on Unix systems) is a compressed tarball of NULL characters.

A fix that works for PLplot is to apply the following patch (suggested on list) to the CMake source code:

--- cmCPackGenericGenerator.cxx_original 2007-01-12
11:41:24.000000000 -0800
+++ cmCPackGenericGenerator.cxx 2007-01-12 11:41:50.000000000 -0800
@@ -164,7 +164,7 @@
     return 0;
     }

- bool movable = true;
+ bool movable = false;
   if ( movable )
     {
     // Make sure there is no destdir

I am not sure of the full implications of this fix, but it does work for PLplot so my vote would be to go ahead and make this change.
No tags attached.
Issue History
2008-03-27 21:39Bill HoffmanNote Added: 0010938
2008-03-27 21:39Bill HoffmanStatusassigned => closed
2008-03-27 21:39Bill HoffmanResolutionopen => fixed

Notes
(0010938)
Bill Hoffman   
2008-03-27 21:39   
This can now be done by setting CPACK_SET_DESTDIR to ON.