The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=14862 ====================================================================== Reported By: Marcus D. Hanwell Assigned To: Ben Boeckel ====================================================================== Project: CMake Issue ID: 14862 Category: CMake Reproducibility: always Severity: major Priority: normal Status: assigned Target Version: CMake 3.0 ====================================================================== Date Submitted: 2014-04-03 16:25 EDT Last Modified: 2014-04-03 16:25 EDT ====================================================================== Summary: CMake and Ninja - check for Fortran optionally Description: Projects such as Eigen attempt to check for a working Fortran compiler, the act of probing for a working Fortran compiler causes configure to fail. This currently means that we are unable to use Ninja to build Eigen. I think the Ninja generator should at least exit more gracefully so that C/C++ projects with optional Fortran code are able to continue. This could be as simple as CMakeTestFortranCompiler.cmake returning failure on any attempt to test Fortran with the Ninja generator.
Steps to Reproduce: Get Eigen, attempt to build it, http://eigen.tuxfamily.org/ is the main site, using the Ninja generator I get the following failed configure. Additional Information: $ ninja eigen [1/4] Performing configure step for 'eigen' FAILED: cd /home/marcus/build/openchemistry/thirdparty/eigen && /usr/bin/cmake -C/home/marcus/build/openchemistry/thirdparty/eigen-prefix/tmp/eigen-cache.cmake "-GCodeBlocks - Ninja" /home/marcus/build/openchemistry/thirdparty/eigen-prefix/src/eigen && /usr/bin/cmake -E touch /home/marcus/build/openchemistry/thirdparty/eigen-prefix/src/eigen-stamp/eigen-configure loading initial cache file /home/marcus/build/openchemistry/thirdparty/eigen-prefix/tmp/eigen-cache.cmake CMake Warning (dev) in CMakeLists.txt: Syntax Warning in cmake code at /home/marcus/build/openchemistry/thirdparty/eigen-prefix/src/eigen/CMakeLists.txt:207:71 Argument not separated from preceding token by whitespace. This warning is for project developers. Use -Wno-dev to suppress it. abort: repository /home/marcus/build/openchemistry/thirdparty/eigen-prefix/src/eigen not found! abort: repository /home/marcus/build/openchemistry/thirdparty/eigen-prefix/src/eigen not found! -- Standard libraries to link to explicitly: none -- searching for 'pkgconfig' directory in PKG_CONFIG_LIBDIR ( ), /home/marcus/build/openchemistry/prefix/share, and /home/marcus/build/openchemistry/prefix/lib -- pkgconfig not found; installing in /home/marcus/build/openchemistry/prefix/share -- /home/marcus/build/openchemistry/thirdparty/eigen/test -- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDES CHOLMOD_LIBRARIES) -- Could NOT find UMFPACK (missing: UMFPACK_INCLUDES UMFPACK_LIBRARIES) -- Could NOT find SUPERLU (missing: SUPERLU_INCLUDES SUPERLU_LIBRARIES) -- Could NOT find PASTIX (missing: PASTIX_INCLUDES PASTIX_LIBRARIES) -- Could NOT find SCOTCH (missing: SCOTCH_INCLUDES SCOTCH_LIBRARIES) -- Could NOT find METIS (missing: METIS_INCLUDES METIS_LIBRARIES) -- Could NOT find SPQR (missing: SPQR_INCLUDES SPQR_LIBRARIES) CMake Error: The Ninja generator does not support Fortran yet. -- The Fortran compiler identification is GNU -- Check for working Fortran compiler using: Ninja CMake Error: The Ninja generator does not support Fortran yet. CMake Error: Internal CMake error, TryCompile configure of cmake failed -- Check for working Fortran compiler using: Ninja -- broken CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:54 (message): The Fortran compiler "/usr/bin/gfortran" is not able to compile a simple test program. It fails with the following output: CMake will not be able to correctly generate this project. Call Stack (most recent call first): blas/CMakeLists.txt:9 (enable_language) -- Configuring incomplete, errors occurred! See also "/home/marcus/build/openchemistry/thirdparty/eigen/CMakeFiles/CMakeOutput.log". See also "/home/marcus/build/openchemistry/thirdparty/eigen/CMakeFiles/CMakeError.log". ninja: build stopped: subcommand failed. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2014-04-03 16:25 Marcus D. HanwellNew Issue 2014-04-03 16:25 Marcus D. HanwellStatus new => assigned 2014-04-03 16:25 Marcus D. HanwellAssigned To => Ben Boeckel ====================================================================== -- 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