summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsFortran.cxx
Commit message (Collapse)AuthorAgeFilesLines
* cmDepends: Refactor object file path conversionBrad King2014-07-221-9/+14
| | | | | | | | Delay conversion of the path to object files (on the left-hand side of dependencies) until just before they are written. Also do not convert the format of paths written to the 'depend.internal' file. This is consistent with the way the right-hand side of dependencies are already handled.
* cmLocalGenerator: Rename 'MAKEFILE' to 'MAKERULE'Brad King2014-07-221-6/+6
| | | | | Rename the internal enumeration value for converting paths destined for use in Makefile rule syntax.
* Merge topic 'gfortran-compressed-modules'Brad King2014-06-241-14/+27
|\ | | | | | | | | d90be200 Fortran: Add support for GNU >= 4.9 compressed modules (#14975)
| * Fortran: Add support for GNU >= 4.9 compressed modules (#14975)Brad King2014-06-231-14/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | From the GCC 4.9 release notes for Fortran: https://gcc.gnu.org/gcc-4.9/changes.html "Module files: The version of the module files (.mod) has been incremented; additionally, module files are now compressed." Teach cmDependsFortran::ModulesDiffer to look for the gzip magic numbers at the beginning of the module file. If found, assume the module was produced by gfortran >= 4.9. The modules do not appear to contain the date as earlier versions did so we can compare the content directly and do not actually need to decompress.
* | Remove c_str calls when using stream APIs.Stephen Kelly2014-03-111-6/+6
| | | | | | | | | | Use an ad-hoc clang tool for matching the calls which should be ported.
* | Remove some c_str() calls.Stephen Kelly2014-03-111-11/+11
| | | | | | | | | | | | Use the clang RemoveCStrCalls tool to automatically migrate the code. This was only run on linux, so does not have any positive or negative effect on other platforms.
* | strings: Remove cmStdString referencesBen Boeckel2014-03-081-20/+20
|/ | | | | | | | | | | Casts from std::string -> cmStdString were high on the list of things taking up time. Avoid such implicit casts across function calls by just using std::string everywhere. The comment that the symbol name is too long is no longer relevant since modern debuggers alias the templates anyways and the size is a non-issue since the underlying methods are generated since it's inherited.
* Use cmsys::[io]fstream instead of cmsys_ios::[io]fstream.Clinton Stimpson2014-01-071-10/+10
| | | | | Also use SystemTools::Fopen() instead of fopen(). This is to eventually support utf-8 filenames.
* cmDepends: allow multiple dependees per dependerAlex Neundorf2012-11-061-23/+29
| | | | | | | | | | | | | | | | | | | | | This patch is heavily inspired by Michael Wild. The interfaces cmDepends::Write and cmDepends::WriteDependencies where extended to allow multiple dependees (sources) per depender (object). cmDepends::Write first collect all dependencies into a std::set before passing it to cmDepends::WriteDependencies. cmDependsC::WriteDependencies also first collects all explicit and implicit dependencies into a std::set and only then writes depend.{internal,make}. The implementation of cmDependsFortran simply loops over all sources and proceeds as before, whereas the cmDependsJava implementation is as trivial as before. This is for preventing exponential growth of depend.{internal,make} in the next commit which fixes dependency-vector erasure in cmDepends::CheckDependencies. Inspired-by: Michael Wild <themiwi@users.sourceforge.net>
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-1/+1
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* Run vim spellcheck on some filesYury G. Kudryashov2012-02-291-6/+6
|
* Fix escapes in Fortran depend.make entriesBrad King2010-01-041-5/+7
| | | | | | | Makefile dependencies must be escaped using cmLocalGenerator::Convert with the cmLocalGenerator::MAKEFILE option. This fixes Fortran module dependencies with spaces in the path. We test the fix by adding a space to one of the module paths in the Fortran test.
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* BUG: Fix Fortran implicit dependency include pathBrad King2009-02-241-0/+3
| | | | | | | | The previous change to Source/cmDependsFortran.cxx while refactoring implicit dependency scanning configuration rules completely broke loading of the include file search path while scanning Fortran dependencies. This adds the line that should have been added during the previous change to load the include path correctly.
* ENH: Light refactoring of implicit dependency scanning configuration ↵Brad King2008-05-081-11/+14
| | | | | | implementation. - Move lookup of config variables from cmLocalUnixMakefileGenerator3 to cmDepends hierarchy.
* BUG: Fix Fortran dependency parser preprocessor handling crash.Brad King2008-04-211-2/+4
| | | | | | - Do not crash if a #elseif occurs out of order - Recognize preprocessor directives only at the beginning of lines. - See issue #6855
* COMP: Fix build on Borland 5.5.Brad King2008-01-181-1/+2
|
* ENH: Enable use of COMPILE_DEFINITIONS property for Fortran sources.Brad King2008-01-181-15/+6
|
* COMP: Fix build on VS6.Brad King2008-01-101-4/+4
|
* ENH: Patch from Maik to add preprocessor directive handling to Fortran ↵Brad King2008-01-091-19/+180
| | | | dependency scanning. Also added -fpp flag to Intel Fortran compiler on Windows by default.
* BUG: make it compile on vs 6Bill Hoffman2008-01-081-3/+3
|
* ENH: Changes based on patch from Maik for better ↵Brad King2008-01-071-48/+125
| | | | cmDependsFortran::ModulesDiffer.
* ENH: Cleanup Fortran build directories by placing module stamp files in the ↵Brad King2008-01-021-9/+5
| | | | target directory that builds them. This is actually a simpler implementation anyway.
* ENH: Make the Fortran compiler id available to cmDependsFortran at scanning ↵Brad King2008-01-021-4/+21
| | | | and module timestamp copy time.
* ENH: Changes based on patch from Maik Beckmann to copy fortran modules to ↵Brad King2007-12-311-10/+112
| | | | timestamps only if they have really changed. This optimization should reduce extra rebuilds caused by dependencies on modules whose providers have recompiled but whose interfaces have not changed.
* ENH: Implemented Fortran module output directory and search path flags.Brad King2007-12-301-20/+54
|
* ENH: Simplify Fortran module proxy dependency implementation by removing ↵Brad King2007-12-301-3/+0
| | | | unnecessary target.
* COMP: Fix uninitialized variable and unused parameter warnings.Brad King2007-12-291-2/+2
|
* ENH: Add per-language clean rule generation to cmake_clean.cmake files to ↵Brad King2007-12-281-0/+21
| | | | include cmake_clean_<lang>.cmake files generated by dependency scanning. Add Fortran module file and timestamp cleaning rules.
* ENH: Implement Fortran module dependencies across targets and directories.Brad King2007-12-281-119/+330
| | | | | | | | | - See issue #5809 - Keep information about all sources in the target until deps are written - Create a fortran.internal file after scanning that lists modules provided - Load fortran.internal files from linked targets to find modules - Search the include path for external modules - Create file-level deps on in-project module timestamps or external mods
* ENH: Convert cmDepends object interface to scan an entire target at once.Brad King2007-12-231-3/+2
|
* BUG: cmDependsFortran should store the source file as a dependency of the ↵Brad King2007-12-191-0/+1
| | | | object file when scanning for dependencies.
* ENH: Pass target directory to cmDependsFortran scanning instances.Brad King2007-12-191-4/+9
|
* ENH: Make module timestamps work for modules in subdirectories. Make sure ↵Brad King2007-12-151-12/+60
| | | | timestamps for all modules provided by a target are created when the target is done building.
* BUG: fix for bug 6136 make sure includes are not directoriesBill Hoffman2007-12-151-6/+6
|
* STYLE: fix line lenBill Hoffman2007-12-051-1/+2
|
* ENH: do not depend on touch being on the systemBill Hoffman2007-12-041-1/+1
|
* STYLE: Fixed line-too-long.Brad King2007-10-161-6/+8
|
* ENH: When an object file requires a module add the file-level dependency ↵Brad King2007-10-121-0/+38
| | | | between the object file and the module timestamp file. Create a dummy timestamp file in case nothing in the project actually creates the module. See bug#5809.
* BUG: Fix in-interface mode. Patch from Maik Beckmann. See bug#5809.Brad King2007-10-101-1/+4
|
* BUG: When requiring a module through a .proxy rule add an empty .proxy rule ↵Brad King2007-10-031-0/+3
| | | | in case no other source in the target provides it. Since it is not a file-level dependency there does not need to be a rule to create the .proxy as a file. This addresses bug#3984.
* BUG: Fix for bug#5809. Applied patch supplied in the bug report. Updated ↵Brad King2007-10-031-7/+26
| | | | pre-generated lexer and parser sources. This updates the makedepf90 version to 2.8.8. The parser actions have been updated to ignore "use" in comments properly.
* BUG: Do not write symbolic make dependencies into depends.internal.Brad King2007-08-291-4/+0
|
* STYLE: fix line lengthKen Martin2006-05-101-2/+2
|
* STYLE: some m_ to this-> cleanupKen Martin2006-03-151-5/+5
|
* ENH: Improve performance of check build system by creating another file that ↵Andy Cedilnik2005-10-121-17/+16
| | | | is simpler to parse and therefore much faster overall
* ENH: reduce the number of files produced still needs a bit more cleanupKen Martin2005-07-271-40/+15
|
* ENH: new fortran depends to match new Unix GenAndy Cedilnik2005-05-251-6/+11
|
* ENH: some updates to the provides requires codeKen Martin2005-05-161-0/+9
|
* ENH: some changes to the depends signature to be more flexibleKen Martin2005-05-111-6/+2
|