diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-07-07 14:11:33 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-07-07 14:11:33 (GMT) |
commit | dcc0aa12967fac24c288049890cc9793f3ad1c02 (patch) | |
tree | 8330b466a940f661e9d195873cf1d824fe02d52b /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 9d531303c0d5777dd97b562d8c74b8fe6438e86f (diff) | |
download | CMake-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.cxx | 5 |
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; } |