Просмотр исходного кода

BUG: if a_LIBS_DEPENDS exists but is empty, there are no explicit dependencies.

Amitha Perera 24 лет назад
Родитель
Сommit
3d4230033a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Source/cmTarget.cxx

+ 1 - 1
Source/cmTarget.cxx

@@ -311,7 +311,7 @@ void cmTarget::GatherDependencies( const cmMakefile& mf,
     return;
 
   const char* deps = mf.GetDefinition( (lib+"_LIB_DEPENDS").c_str() );
-  if( deps )
+  if( deps && strcmp(deps,"") != 0 )
     {
     // Make sure this library is in the map, even if it has an empty
     // set of dependencies. This distinguishes the case of explicitly