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 ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers