[cmake-developers] [CMake 0012336]: No warning or error generated for putting source dir in wrong location

Mantis Bug Tracker mantis at public.kitware.com
Thu Jul 14 04:32:39 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=12336 
====================================================================== 
Reported By:                Ron de Bruijn
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12336
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-07-14 04:32 EDT
Last Modified:              2011-07-14 04:32 EDT
====================================================================== 
Summary:                    No warning or error generated for putting source dir
in wrong location
Description: 
The following is completely wrong:
cmake . -D CMAKE_INSTALL_PREFIX="$HOME"

This is correct:
cmake -D CMAKE_INSTALL_PREFIX="$HOME" .

The problem is that cmake happily continues to do something with the former
version instead of just ignoring the rest of the input. 

Possible solutions range from properly parsing the input and reporting a message
like "In CMake the source directory comes last, cmake -D
CMAKE_INSTALL_PREFIX="$HOME" . would be a valid version of your command" or
simply extend the specification of cmake to reduce the need to place a certain
parameter in a certain location and make it work as intended. 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-07-14 04:32 Ron de Bruijn  New Issue                                    
======================================================================




More information about the cmake-developers mailing list