[cmake-developers] [CMake 0011704]: [mingw32] mingw32-make install: CMAKE_INSTALL_PREFIX and DESTDIR issue

Mantis Bug Tracker mantis at public.kitware.com
Sat Jan 15 20:49:20 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11704 
====================================================================== 
Reported By:                Maddes
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11704
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-01-15 20:49 EST
Last Modified:              2011-01-15 20:49 EST
====================================================================== 
Summary:                    [mingw32] mingw32-make install: CMAKE_INSTALL_PREFIX
and DESTDIR issue
Description: 
Behaviour of CMake for "mingw32-make install" of MinGW is a little bit weird as
DESTDIR doesn't replace value from CMAKE_INSTALL_PREFIX, although DESTDIR
support is told to be supported in FAQ.

"mingw32-make install" without DESTDIR works as expected, it uses
CMAKE_INSTALL_PREFIX (here CMake default).

"mingw32-make install" with DESTDIR does not work as expected, it uses both in
conjunction leading to weird destination folders with MinGW.

Steps to Reproduce: 
> cmake -G "MinGW Makefiles"
...

> mingw32-make
...

> mingw32-make install
Install the project...
-- Install configuration: ""
-- Installing: C:/Program Files (x86)/PINPROC/lib/libpinproc.a
-- Up-to-date: C:/Program Files (x86)/PINPROC/include/p-roc/pinproc.h

> mingw32-make install DESTDIR="E:\TEMP\TEST"
Install the project...
-- Install configuration: ""
-- Installing: E:/TEMP/TEST/Program Files (x86)/PINPROC/lib/libpinproc.a
-- Installing: E:/TEMP/TEST/Program Files (x86)/PINPROC/include/p-roc/pinproc.h

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-15 20:49 Maddes         New Issue                                    
======================================================================




More information about the cmake-developers mailing list