Merge topic 'object-library-compile-pdb'

feff52d4 Fix COMPILE_PDB_NAME when used on an OBJECT library
This commit is contained in:
Brad King
2017-02-27 09:11:22 -05:00
committed by CMake Topic Stage
2 changed files with 2 additions and 1 deletions

View File

@@ -1147,7 +1147,7 @@ std::string cmGeneratorTarget::GetCompilePDBPath(
{
std::string dir = this->GetCompilePDBDirectory(config);
std::string name = this->GetCompilePDBName(config);
if (dir.empty() && !name.empty()) {
if (dir.empty() && !name.empty() && this->HaveWellDefinedOutputFiles()) {
dir = this->GetPDBDirectory(config);
}
if (!dir.empty()) {