The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=14917 ====================================================================== Reported By: Andreas Boerner Assigned To: ====================================================================== Project: CMake Issue ID: 14917 Category: CMake Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2014-05-15 10:02 MDT Last Modified: 2014-05-15 10:02 MDT ====================================================================== Summary: CMake does nor create response file for Ninja Description: On a larger project, (cmake -G Ninja) the arguments get too long for Ninja or Linux to handle. (That's usually the link command). Linking aborts because of error command line too long
Steps to Reproduce: happens always if link command is long enough Additional Information: I have a work-around for this: ninjaFix.lex: %% CXX_EXECUTABLE_LINKER printf("%s_RSP_FILE", yytext); TARGET_PDB.+ printf("%s/n RSP_FILE = rsp.txt\n", yytext); flex ninjaFix.lex gcc -o fix lex.yy.c -lfl and then I do after cmake -G Ninja: mv build.ninja build.ninja.in fix < build.ninja.in > build.ninja and then I can call ninja -j 20 without an error. Would be great if this fix could be integrated into the Ninja generator of cmake ! ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2014-05-15 10:02 Andreas BoernerNew 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/cgi-bin/mailman/listinfo/cmake-developers