diff options
author | Brad King <brad.king@kitware.com> | 2007-03-08 19:57:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-03-08 19:57:28 (GMT) |
commit | 33ee83714d3cea644f9d1cd6654c2e7b1f3cdc5d (patch) | |
tree | 5f2f82863c856ed2f5c1f04158eb228ac1477c24 /Source/cmMakefileLibraryTargetGenerator.cxx | |
parent | ea19994b13273cf6e1f7677cc29ce53cf1a59768 (diff) | |
download | CMake-33ee83714d3cea644f9d1cd6654c2e7b1f3cdc5d.zip CMake-33ee83714d3cea644f9d1cd6654c2e7b1f3cdc5d.tar.gz CMake-33ee83714d3cea644f9d1cd6654c2e7b1f3cdc5d.tar.bz2 |
ENH: Replaced LibraryOutputPath and ExecutableOutputPath variables in Makefile and VS generators to instead ask each target for its output path. This significantly reduces total code size and centralizes previously duplicate code. It is also a step towards bug#2240.
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileLibraryTargetGenerator.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx index 17c2fab..36021dc 100644 --- a/Source/cmMakefileLibraryTargetGenerator.cxx +++ b/Source/cmMakefileLibraryTargetGenerator.cxx @@ -245,12 +245,7 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules this->LocalGenerator->ConfigurationName.c_str()); // Construct the full path version of the names. - std::string outpath = this->LocalGenerator->LibraryOutputPath; - if(outpath.length() == 0) - { - outpath = this->Makefile->GetStartOutputDirectory(); - outpath += "/"; - } + std::string outpath; if(relink) { outpath = this->Makefile->GetStartOutputDirectory(); @@ -259,6 +254,11 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules cmSystemTools::MakeDirectory(outpath.c_str()); outpath += "/"; } + else + { + outpath = this->Target->GetOutputDir(); + outpath += "/"; + } std::string targetFullPath = outpath + targetName; std::string targetFullPathPDB = outpath + targetNamePDB; std::string targetFullPathSO = outpath + targetNameSO; |