diff options
author | Brad King <brad.king@kitware.com> | 2017-02-24 16:31:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-24 16:31:46 (GMT) |
commit | ad3bf56dd210888c94fac33238b35ddccf3a8053 (patch) | |
tree | 8a5c48fe28f21cfca9b19ba0c6c5ca97742391e5 /Source | |
parent | 8ea060f960c1aa9d2fd2da6a035f03a64d08863b (diff) | |
parent | feff52d42ca18a52fd99e8fdfd3093c3a94eb498 (diff) | |
download | CMake-ad3bf56dd210888c94fac33238b35ddccf3a8053.zip CMake-ad3bf56dd210888c94fac33238b35ddccf3a8053.tar.gz CMake-ad3bf56dd210888c94fac33238b35ddccf3a8053.tar.bz2 |
Merge branch 'object-library-compile-pdb' into release
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 6ce8140..3fe5c83 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -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()) { |