Browse Source

BUG: Treat empty config name as no configuration

In cmComputeLinkDepends we should treat an empty configuration name as
equivalent to no specific configuration at all.
Brad King 17 years ago
parent
commit
32fe1d5b0d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmComputeLinkDepends.cxx

+ 1 - 1
Source/cmComputeLinkDepends.cxx

@@ -171,7 +171,7 @@ cmComputeLinkDepends
   this->CMakeInstance = this->GlobalGenerator->GetCMakeInstance();
 
   // The configuration being linked.
-  this->Config = config;
+  this->Config = (config && *config)? config : 0;
 
   // Enable debug mode if requested.
   this->DebugMode = this->Makefile->IsOn("CMAKE_LINK_DEPENDS_DEBUG_MODE");