diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-06-22 13:58:10 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-06-22 13:58:10 (GMT) |
commit | f7d4f27c2a378317fa382fc1813ba7cb31cbd839 (patch) | |
tree | ecdf2d72c79c335abe372f892c2d560b1b2b5758 /Source/cmCPluginAPI.cxx | |
parent | 1d9889c5d34d83b269697c0b09e840bf83066e6f (diff) | |
download | CMake-f7d4f27c2a378317fa382fc1813ba7cb31cbd839.zip CMake-f7d4f27c2a378317fa382fc1813ba7cb31cbd839.tar.gz CMake-f7d4f27c2a378317fa382fc1813ba7cb31cbd839.tar.bz2 |
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
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r-- | Source/cmCPluginAPI.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx index acd663d..81a5562 100644 --- a/Source/cmCPluginAPI.cxx +++ b/Source/cmCPluginAPI.cxx @@ -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, |