[cmake-developers] [CMake 0012641]: cmake --build <dir> confuses cmake. <dir> is treated as source to path or source to build dir

Mantis Bug Tracker mantis at public.kitware.com
Mon Dec 26 13:06:30 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=12641 
====================================================================== 
Reported By:                kesten
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12641
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-12-26 13:06 EST
Last Modified:              2011-12-26 13:06 EST
====================================================================== 
Summary:                    cmake --build <dir> confuses cmake.  <dir> is
treated as source to path or source to build dir
Description: 

with PROJECT_SOURCE_DIR =
home/kesten/VersionControlProjects/Bazaar/Engines/Bullet/bullet-trunk/trunk

PROJECT_SOURCE_DIR$ cmake -G "Unix Makefiles" --build
../../cmake-build-svn-trunk

-- Build files have been written to:
/home/kesten/VersionControlProjects/Bazaar/Engines/Bullet/bullet-trunk/trunk

If I supply a "." to take the place of path-to-source-dir then it works

PROJECT_SOURCE_DIR$ cmake -G "Unix Makefiles" --build
../../cmake-build-svn-trunk . 

Expected Behaviour:
cmake can run with no paths given.  cmake --build <dir> should put build files
in <dir>.  At the least, a warning should be issued that --build was ignored
because cmake expected: cmake --build <dir> path-to-source (use "." for dir that
cmake is issued from) 



Steps to Reproduce: 
run cmake --build <dir>  without specifying path-to-source or build-dir after
<dir>


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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-12-26 13:06 kesten         New Issue                                    
======================================================================




More information about the cmake-developers mailing list