Browse Source

ENH: added ability to prefix target directories with a . to make them not show up in ls. From patch from Alex

Ken Martin 20 years ago
parent
commit
dcc0aa1296
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Source/cmLocalUnixMakefileGenerator3.cxx

+ 5 - 0
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;
 }