summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsFortran.cxx
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* ENH: Added optional verbose output to build system dependency check.Brad King2005-05-061-3/+4
|
* BUG: When checking for upper-case modules do not use an upper-case .MOD ↵Brad King2005-03-071-1/+3
| | | | extension.
* ENH: Implementing explicit cmake_copy_f90_mod callback to copy Fortran90 ↵Brad King2005-03-031-12/+53
| | | | modules to the stamp files more reliably. This removes the temporary hack for per-platform upper-/lower- case.
* BUG: We need to test the compiler for the case of the mod file names. For ↵Brad King2005-03-021-0/+14
| | | | now this is a temporary hack to use upper case on SGI and lower case on Sun.
* BUG: Module file names are case insensitive. Always use lower case no ↵Brad King2005-03-011-3/+5
| | | | matter the real name of the module.
* STYLE: Added TODO comment for checking dependencies.Brad King2005-02-151-0/+1
|
* ENH: Changed over to using C++ for building flex/bison generated files. It ↵Brad King2005-02-011-8/+6
| | | | reduces the number of changes that need to be made after generation.
* STYLE: Added another solution proposal for out-of-directory modules.Brad King2005-01-281-0/+17
|