summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-01-02 18:37:53 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-01-02 18:37:53 (GMT)
commit86ad2534270feb3b15bea773cb4d3f04f998ec48 (patch)
tree68b93cd0c28cd59f9a1ace52f1b6540d29857ad9 /Source/cmTarget.cxx
parent1c289b52f4b6b870ebde3bbdff17a5aaf74fe8e9 (diff)
downloadCMake-86ad2534270feb3b15bea773cb4d3f04f998ec48.zip
CMake-86ad2534270feb3b15bea773cb4d3f04f998ec48.tar.gz
CMake-86ad2534270feb3b15bea773cb4d3f04f998ec48.tar.bz2
BUG: fix for bug 2322, use CMAKE_EXECUTABLE_SUFFIX variable for exe suffix
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 4e2b01c..61f5482 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -914,6 +914,7 @@ const char* cmTarget::GetSuffixVariableInternal(TargetType type)
case cmTarget::MODULE_LIBRARY:
return "CMAKE_SHARED_MODULE_SUFFIX";
case cmTarget::EXECUTABLE:
+ return "CMAKE_EXECUTABLE_SUFFIX";
case cmTarget::UTILITY:
case cmTarget::INSTALL_FILES:
case cmTarget::INSTALL_PROGRAMS:
@@ -956,10 +957,6 @@ std::string cmTarget::GetFullNameInternal(TargetType type)
{
const char* targetPrefix = this->GetProperty("PREFIX");
const char* targetSuffix = this->GetProperty("SUFFIX");
- if(!targetSuffix && type == cmTarget::EXECUTABLE)
- {
- targetSuffix = cmSystemTools::GetExecutableExtension();
- }
const char* prefixVar = this->GetPrefixVariableInternal(type);
const char* suffixVar = this->GetSuffixVariableInternal(type);
const char* ll =