diff options
author | Brad King <brad.king@kitware.com> | 2015-07-06 14:21:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-06 14:35:02 (GMT) |
commit | 0a203db5dc4c654a488777acd785337dd24137e2 (patch) | |
tree | e4fe52c8888eb74495c2afaf550f851b7a16cf54 /Source/cmDependsFortran.cxx | |
parent | a6916a6c6e397bda8b381f65dbfc59d3c52f8525 (diff) | |
download | CMake-0a203db5dc4c654a488777acd785337dd24137e2.zip CMake-0a203db5dc4c654a488777acd785337dd24137e2.tar.gz CMake-0a203db5dc4c654a488777acd785337dd24137e2.tar.bz2 |
Fortran: Fix passing of preprocessor definitions to dependency scanner
In commit v3.3.0-rc1~352^2~3 (Genex: Allow COMPILE_LANGUAGE when
processing compile definitions, 2015-03-04) the name of the variable
used to pass preprocessor definitions to the Fortran dependency scanner
was changed to be per-language, but the actual dependency scanning code
was not updated accordingly. Update the code and add a test case.
Reported-by: Radovan Bast <radovan.bast@gmail.com>
Diffstat (limited to 'Source/cmDependsFortran.cxx')
-rw-r--r-- | Source/cmDependsFortran.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmDependsFortran.cxx b/Source/cmDependsFortran.cxx index f12116e..1b2586c 100644 --- a/Source/cmDependsFortran.cxx +++ b/Source/cmDependsFortran.cxx @@ -143,7 +143,7 @@ cmDependsFortran std::vector<std::string> definitions; cmMakefile* mf = this->LocalGenerator->GetMakefile(); if(const char* c_defines = - mf->GetDefinition("CMAKE_TARGET_DEFINITIONS")) + mf->GetDefinition("CMAKE_TARGET_DEFINITIONS_Fortran")) { cmSystemTools::ExpandListArgument(c_defines, definitions); } |