mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 06:40:16 -05:00
Replace boolean implib parameters with enum
Named enumeration values are much clearer at call sites and add more type safety.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "cmState.h"
|
||||
#include "cmStateDirectory.h"
|
||||
#include "cmStateSnapshot.h"
|
||||
#include "cmStateTypes.h"
|
||||
#include "cmSystemTools.h"
|
||||
#include "cm_auto_ptr.hxx"
|
||||
#include "cmake.h"
|
||||
@@ -332,7 +333,8 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
|
||||
} else {
|
||||
cmSystemTools::MakeDirectory(outpath.c_str());
|
||||
if (!targetNameImport.empty()) {
|
||||
outpathImp = this->GeneratorTarget->GetDirectory(this->ConfigName, true);
|
||||
outpathImp = this->GeneratorTarget->GetDirectory(
|
||||
this->ConfigName, cmStateEnums::ImportLibraryArtifact);
|
||||
cmSystemTools::MakeDirectory(outpathImp.c_str());
|
||||
outpathImp += "/";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user