mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user