summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-05-01 13:45:19 (GMT)
committerBrad King <brad.king@kitware.com>2009-05-01 13:45:19 (GMT)
commit617eb981d4184b30987c5c666d9631735148d59d (patch)
tree679f11999dc06f17ed304fd33cee9ae5e2704797 /Source/cmTarget.h
parent5f7ea11f97c0bf6bd5f80bdc935e6a250447f291 (diff)
downloadCMake-617eb981d4184b30987c5c666d9631735148d59d.zip
CMake-617eb981d4184b30987c5c666d9631735148d59d.tar.gz
CMake-617eb981d4184b30987c5c666d9631735148d59d.tar.bz2
ENH: Refactor target output file type computation
This creates method cmTarget::GetOutputTargetType to compute the output file type 'ARCHIVE', 'LIBRARY', or 'RUNTIME' from the platform and target type. It factors out logic from the target output directory computation code for later re-use.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 23ef9dc..4bee06f 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -494,6 +494,9 @@ private:
// If the variable is not defined use the given default instead.
void SetPropertyDefault(const char* property, const char* default_value);
+ // Returns ARCHIVE, LIBRARY, or RUNTIME based on platform and type.
+ const char* GetOutputTargetType(bool implib);
+
// Get the full path to the target output directory.
std::string GetOutputDir(bool implib);
std::string const& ComputeBaseOutputDir(bool implib);