On 05/15/2014 08:36 AM, Ben Boeckel wrote: > If you'd like to try a patch, the relevant code is in > Source/cmExprParser*. Add a callback for #line nnn and update the > CurrentLine variable cmExprParserHelper.cxx. Don't forget tests :) .
cmExprParser is just for the math() command. The language parser is "cmListFileLexer.in.l" and "cmListFileCache.cxx". Tracking of the current source file may need to be moved. The lexer would have to recognize #line syntax and update lexer->line. Be careful to only do so in the main state and not inside a quoted or bracket argument. -Brad -- 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/cgi-bin/mailman/listinfo/cmake-developers