ENH: add IMPORT keyword to ADD_LIBRARY, dependencies are not yet working

STYLE: fix line lengths and indentation, use enum as argument to AddLibrary() instead of int (which was initialized from a bool in some cases)

Alex
This commit is contained in:
Alexander Neundorf
2007-06-22 09:58:10 -04:00
parent 1d9889c5d3
commit f7d4f27c2a
5 changed files with 61 additions and 50 deletions

View File

@@ -394,7 +394,9 @@ void CCONV cmAddLibrary(void *arg, const char *libname, int shared,
{
srcs2.push_back(srcs[i]);
}
mf->AddLibrary(libname, (shared ? true : false), srcs2);
mf->AddLibrary(libname,
(shared? cmTarget::SHARED_LIBRARY : cmTarget::STATIC_LIBRARY),
srcs2);
}
char CCONV *cmExpandVariablesInString(void *arg, const char *source,