diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2017-04-19 17:10:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-04-20 14:22:33 (GMT) |
commit | cf320f7cd74eeb87437f737e6e977f2231e109a1 (patch) | |
tree | b5311bf666cbf9324bbacc446b787658566b5e24 /Source/cmInstallTargetGenerator.cxx | |
parent | 44f0d2d9913595e214048b6d5a2b9ab2e9d1cf46 (diff) | |
download | CMake-cf320f7cd74eeb87437f737e6e977f2231e109a1.zip CMake-cf320f7cd74eeb87437f737e6e977f2231e109a1.tar.gz CMake-cf320f7cd74eeb87437f737e6e977f2231e109a1.tar.bz2 |
Replace boolean `implib` parameters with enum
Named enumeration values are much clearer at call sites and add more
type safety.
Diffstat (limited to 'Source/cmInstallTargetGenerator.cxx')
-rw-r--r-- | Source/cmInstallTargetGenerator.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmInstallTargetGenerator.cxx b/Source/cmInstallTargetGenerator.cxx index 6ecf42d..1827ed3 100644 --- a/Source/cmInstallTargetGenerator.cxx +++ b/Source/cmInstallTargetGenerator.cxx @@ -103,7 +103,10 @@ void cmInstallTargetGenerator::GenerateScriptForConfig( fromDirConfig += cmake::GetCMakeFilesDirectory(); fromDirConfig += "/CMakeRelink.dir/"; } else { - fromDirConfig = this->Target->GetDirectory(config, this->ImportLibrary); + cmStateEnums::ArtifactType artifact = this->ImportLibrary + ? cmStateEnums::ImportLibraryArtifact + : cmStateEnums::RuntimeBinaryArtifact; + fromDirConfig = this->Target->GetDirectory(config, artifact); fromDirConfig += "/"; } |