[cmake-developers] [CMake 0012340]: Setting CMAKE_INSTALL_PREFIX does not behave as expected

Mantis Bug Tracker mantis at public.kitware.com
Thu Jul 14 16:56:21 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://cmake.org/Bug/view.php?id=12340 
====================================================================== 
Reported By:                Russ Tayor
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12340
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2011-07-14 16:56 EDT
Last Modified:              2011-07-14 16:56 EDT
====================================================================== 
Summary:                    Setting CMAKE_INSTALL_PREFIX does not behave as
expected
Description: 
When I set CMAKE_INSTALL_PREFIX in a CMakeLists.txt file as follows:

#-----------------------------------------------------------------------------
# Put this in /usr/local unless overridden.  The default on Windows is
# in Program Files, but that breaks on Windows 7 because you have to be
# admin to write there.

set(CMAKE_INSTALL_PREFIX /usr/local/)

the behavior is not as expected.  First, that value for the prefix does not show
up in the GUI.  Second, the value that is set in CMakeLists.txt file is the one
that is actually used (so the one shown in cmake-gui is not used).  Thus, there
is no way to see that it has been changed or to override it.

This is not what happens with other variables in CMake.

Steps to Reproduce: 
Add the above into your CMakeLists.txt file for your favorite project.


Additional Information: 
This also happens on MacOSX under CMake 2.8.2.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-07-14 16:56 Russ Tayor     New Issue                                    
======================================================================




More information about the cmake-developers mailing list