diff options
author | Chuck Cranor <chuck@ece.cmu.edu> | 2019-01-25 17:57:42 (GMT) |
---|---|---|
committer | Chuck Cranor <chuck@ece.cmu.edu> | 2019-01-25 17:57:42 (GMT) |
commit | 2e91627dea507ec6f4406d561b073bdc14860cb1 (patch) | |
tree | e3cb2c95856f48dba30b3dfdd22bc0bbfebd3c21 /Tests/RunCMake/ParseImplicitIncludeInfo/data/README | |
parent | 568343767e5852f0e5751341a3aa44ab6feffb8a (diff) | |
download | CMake-2e91627dea507ec6f4406d561b073bdc14860cb1.zip CMake-2e91627dea507ec6f4406d561b073bdc14860cb1.tar.gz CMake-2e91627dea507ec6f4406d561b073bdc14860cb1.tar.bz2 |
ParseImplicitIncludeInfo: add Fortran implicit include handling
Currently cmake is only setting CMAKE_Fortran_IMPLICIT_INCLUDE_DIRECTORIES
the first time it runs (the implicit includes parser is only run when
the cache variables are initially populated). It is left unset
during additional runs. This behavior is both confusing and
inconsistent.
Modify CMakeFortranCompiler.cmake.in to preserve the value of
CMAKE_Fortran_IMPLICIT_INCLUDE_DIRECTORIES so that cmake's Fortran
behavior matches C and CXX (i.e. CMAKE_Fortran_IMPLICIT_INCLUDE_DIRECTORIES
retains its value across runs). The implicit includes variable may
not be as useful for Fortran as it is for C and CXX, but we do want
cmake to be consistent in how it is handled.
Adjust CMakeParseImplicitIncludeInfo to parse verbose Fortran output
for Cray and XL compiler IDs (GNU and clang were already ok since
they use the same verbose output format as they do with C/CXX).
Allow Tests/RunCMake/ParseImplicitIncludeInfo/data/CMakeLists.txt
to generate test inputs for Fortran too, and add some sample Fortran
input files for the Tests/RunCMake/ParseImplicitIncludeInfo test.
Diffstat (limited to 'Tests/RunCMake/ParseImplicitIncludeInfo/data/README')
-rw-r--r-- | Tests/RunCMake/ParseImplicitIncludeInfo/data/README | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/RunCMake/ParseImplicitIncludeInfo/data/README b/Tests/RunCMake/ParseImplicitIncludeInfo/data/README index 9d1246a..4f19b3c 100644 --- a/Tests/RunCMake/ParseImplicitIncludeInfo/data/README +++ b/Tests/RunCMake/ParseImplicitIncludeInfo/data/README @@ -5,7 +5,9 @@ directories parser for testing. For each configuration there is one To generate ".input" files for a system, create a temporary build directory and chdir to it. Then run cmake pointing to this directory. The CMakeLists.txt file here will generate ".input" files in your -build directory. +build directory. The default set of languages is C and CXX. This +can be changed with -DLANGUAGES=language_list. For example: +-DLANGUAGES=Fortran will generate Fortran parser input. The ".output" files should be generated by hand from the input files. The test will compare the parser output to the manually generated |