summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-07-07 14:11:33 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-07-07 14:11:33 (GMT)
commitdcc0aa12967fac24c288049890cc9793f3ad1c02 (patch)
tree8330b466a940f661e9d195873cf1d824fe02d52b /Source/cmLocalUnixMakefileGenerator3.cxx
parent9d531303c0d5777dd97b562d8c74b8fe6438e86f (diff)
downloadCMake-dcc0aa12967fac24c288049890cc9793f3ad1c02.zip
CMake-dcc0aa12967fac24c288049890cc9793f3ad1c02.tar.gz
CMake-dcc0aa12967fac24c288049890cc9793f3ad1c02.tar.bz2
ENH: added ability to prefix target directories with a . to make them not show up in ls. From patch from Alex
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 0b85b9a..38b6203 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -1933,6 +1933,11 @@ cmLocalUnixMakefileGenerator3::GetTargetDirectory(cmTarget& target)
{
std::string dir = target.GetName();
dir += ".dir";
+ const char* hideDirs=m_Makefile->GetDefinition("CMAKE_HIDE_TARGET_DIRS");
+ if (hideDirs && !cmSystemTools::IsOff(hideDirs))
+ {
+ dir = "." + dir;
+ }
return dir;
}