[cmake-developers] [CMake 0016093]: Order of --build and --target "cmake" command options matters

Mantis Bug Tracker mantis at public.kitware.com
Wed May 4 10:21:09 EDT 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=16093 
====================================================================== 
Reported By:                Andreas Schuh
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   16093
Category:                   CMake
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-05-04 10:21 EDT
Last Modified:              2016-05-04 10:21 EDT
====================================================================== 
Summary:                    Order of --build and --target "cmake" command
options matters
Description: 
The following results in an error as if I'd specified a subdirectory underneath
the current build directory. Changing the order of --build and --target options
works as expected, though. Just "--build ." followed directly by "--target"
gives this error.

cmake --config Release --build . --target apidoc
CMake Error: The source directory "/Users/as12312/Software/BASIS/Xcode/apidoc"
does not exist.
Specify --help for usage, or press the help button on the CMake GUI.


cmake --config Release --target apidoc --build .
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-05-04 10:21 Andreas Schuh  New Issue                                    
======================================================================



More information about the cmake-developers mailing list