summaryrefslogtreecommitdiffstats
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-06-22 13:58:10 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-06-22 13:58:10 (GMT)
commitf7d4f27c2a378317fa382fc1813ba7cb31cbd839 (patch)
treeecdf2d72c79c335abe372f892c2d560b1b2b5758 /Source/cmCPluginAPI.cxx
parent1d9889c5d34d83b269697c0b09e840bf83066e6f (diff)
downloadCMake-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.cxx4
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,