diff options
| author | Brad King <brad.king@kitware.com> | 2014-02-24 19:15:21 (GMT) |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2014-02-26 14:41:36 (GMT) |
| commit | 0ea3aee825dc45e56bcdffce407fa4decd29cd8a (patch) | |
| tree | 8fdcb3374e5684c739389cb98c554b0727c9e74f /Source/cmLocalGenerator.cxx | |
| parent | 3737860a383b1020f44a31be9ac5536e9913fc71 (diff) | |
| download | CMake-0ea3aee825dc45e56bcdffce407fa4decd29cd8a.zip CMake-0ea3aee825dc45e56bcdffce407fa4decd29cd8a.tar.gz CMake-0ea3aee825dc45e56bcdffce407fa4decd29cd8a.tar.bz2 | |
MSVC: Add properties to configure compiler PDB files (#14763)
Since commit v2.8.12~437^2~2 (VS: Separate compiler and linker PDB files
2013-04-05) we no longer set /Fd with the PDB_NAME or PDB_OUTPUT_DIRECTORY
properties. Those properties now exclusively handle linker PDB files.
Since STATIC libraries do not link their compiler PDB file becomes more
important. Add new target properties "COMPILE_PDB_NAME[_<CONFIG>]" and
"COMPILE_PDB_OUTPUT_DIRECTORY[_<CONFIG>]" to specify the compiler PDB
file location and pass the value to the MSVC /Fd option.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
| -rw-r--r-- | Source/cmLocalGenerator.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index aca195c..4266dd0 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -901,6 +901,13 @@ cmLocalGenerator::ExpandRuleVariable(std::string const& variable, return replaceValues.TargetPDB; } } + if(replaceValues.TargetCompilePDB) + { + if(variable == "TARGET_COMPILE_PDB") + { + return replaceValues.TargetCompilePDB; + } + } if(replaceValues.DependencyFile ) { if(variable == "DEP_FILE") |
