[cmake-developers] [CMake 0015092]: COMMAND cannot parse shell []

Mantis Bug Tracker mantis at public.kitware.com
Sat Aug 16 11:06:10 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15092 
====================================================================== 
Reported By:                David Thomas
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15092
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2014-08-16 11:06 EDT
Last Modified:              2014-08-16 11:06 EDT
====================================================================== 
Summary:                    COMMAND cannot parse shell []
Description: 
Any COMMAND that starts with '[' and has some statement followed by ']'
generates some parser error that never occurred in CMAKE 2.x.  I cannot recall
the exact error as I downgraded to CMAKE 2.8.12, but it was something about
expecting a parenthesis.

Steps to Reproduce: 
Try this or some shorter version of this in a cmakelists.txt file:
COMMAND [ ! -d "${CMAKE_CFG_INTDIR}/lib" ] || cp -rf "${CMAKE_CFG_INTDIR}/lib"
"${CMAKE_CFG_INTDIR}/${APPLICATION_NAME}.app/Contents/MacOS/"


Additional Information: 
all parse-able COMMANDS in CMAKE 2.8 need to be parse-able in 3.x.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-08-16 11:06 David Thomas   New Issue                                    
======================================================================



More information about the cmake-developers mailing list