From dcc0aa12967fac24c288049890cc9793f3ad1c02 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 7 Jul 2005 10:11:33 -0400 Subject: [PATCH] ENH: added ability to prefix target directories with a . to make them not show up in ls. From patch from Alex --- Source/cmLocalUnixMakefileGenerator3.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 0b85b9a78..38b620328 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; }