[Cmake] CMSYSTEMTOOLS_STANDALONE

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Tue Dec 3 20:17:45 EST 2002


Ken,

I've added a brief
#ifdef CMSYSTEMTOOLS_EXPORTS
 #define CMSYSTEMTOOLS_EXPORT _declspec dll(import)
etc etc
to cmStandardincludes.h
and class CMSYSTEMTOOLS_EXPORT classname
to the
cmSystemtools, cmDirectory, cmRegularExpression
and #ifndefed out the code that pulls in external stuff...but it seems like
you have a more direct dll related plan. Shall I hold off commiting anything
and see what you're up to or shall I commit it?

My External project simply includes the above files (cxx and h), defines
SMSYSTEMTOOLS_STANDALONE and SMSYSTEMTOOLS_EXPORTS and is working fine

JB

----- Original Message -----
From: "Ken Martin" <ken.martin at kitware.com>
To: "'John Biddiscombe'" <jbiddiscombe at skippingmouse.co.uk>; "'Andy
Cedilnik'" <andy.cedilnik at kitware.com>
Cc: "'CMake'" <cmake at public.kitware.com>
Sent: Monday, December 02, 2002 4:19 PM
Subject: RE: [Cmake] CMSYSTEMTOOLS_STANDALONE


> cmSystemTools shold not use the cmMakefile. The FindLibrary command in
> cmSystem tools should be reworked so that it doesn't use the makefile.
> Instead the Makefile will have its own FindLibrary command that handles
> the odd cases. I've been meaning to do this and it will clean up some of
> these issues. I'll take a stab at it this week.
>
> Thanks
> Ken
>
> > -----Original Message-----
> > From: cmake-admin at public.kitware.com [mailto:cmake-
> > admin at public.kitware.com] On Behalf Of John Biddiscombe
> > Sent: Friday, November 29, 2002 10:24 AM
> > To: Andy Cedilnik
> > Cc: CMake
> > Subject: Re: [Cmake] CMSYSTEMTOOLS_STANDALONE
> >
> > I'm still playing with it. I discovered that as I'm using
> cmSystemTools in
> > in one of my vtkCustom Dll's I needed to add some
> > class CMSYSTEMTOOLS_EXPORT cmSystemTools
> > additions. This has made the process a bit more messy than I had
> intended
> > and I need to plan it a bit better.
> >
> > Probably a cmSystemUtils dll would be better, then have anything that
> uses
> > cmMakefile in a seperate class. Though I think leave the name as
> > cmSystemTools and just move a few that need esoteric things into into
> a
> > new
> > cmMakefileTools or something like that.
> >
> > Why is CMakeLib always static?
>
> I fixed most of the problems so that CMakeLib could be a DLL, (briefly
> it was for about a week) But STL under MSVC6 has problems with DLLs and
> iterators and it turned out that I didn't need it to be a DLL and it
> made the code more of a mess so I changed it back to static.
>
>
>
>
> _______________________________________________
> Cmake mailing list
> Cmake at public.kitware.com
> http://public.kitware.com/mailman/listinfo/cmake




More information about the CMake mailing list