2007/6/14, David Cole <[EMAIL PROTECTED]>:
It's "advanced" CMake use, but you might want to have a look at overriding
the CMake "rule variable" CMAKE_CXX_CREATE_STATIC_LIBRARY.
(Or _C_ if it's C source code.) You should be able to add some linker flags
in there, although they may apply to all sta
2007/6/15, kitts <[EMAIL PROTECTED]>:
On Thursday 14 Jun 2007 12:23:07 pm Jesper Eskilson wrote:
> Is it really impossible to pass an option to the linker when creating a
> static library?
I have not gone through the whole thread but i think the function
SET_TARGET_PROPERTIES(TARGET LINK_FLAGS
On Thursday 14 Jun 2007 12:23:07 pm Jesper Eskilson wrote:
> Is it really impossible to pass an option to the linker when creating a
> static library?
I have not gone through the whole thread but i think the function
SET_TARGET_PROPERTIES(TARGET LINK_FLAGS "XYZ") can do it.
The problem i foresee
On 6/14/07, Jesper Eskilson <[EMAIL PROTECTED]> wrote:
Is it really impossible to pass an option to the linker when creating a
static library?
It's not terribly difficult. But I thought I'd save you the learning
curve if it wasn't necessary.
Cheers,
Brandon Van Every
___
It's "advanced" CMake use, but you might want to have a look at overriding
the CMake "rule variable" CMAKE_CXX_CREATE_STATIC_LIBRARY. (Or _C_ if it's C
source code.) You should be able to add some linker flags in there, although
they may apply to all static libraries built in the whole project. I'
2007/6/14, Brandon Van Every <[EMAIL PROTECTED]>:
On 6/13/07, Jesper Eskilson <[EMAIL PROTECTED]> wrote:
> 2007/6/13, Brandon Van Every <[EMAIL PROTECTED]>:
> >
> > But why don't you just ship your users a dynamic lib? As far as I
> > know, there are no restrictions on dynamic libs including st
On 6/13/07, Jesper Eskilson <[EMAIL PROTECTED]> wrote:
2007/6/13, Brandon Van Every <[EMAIL PROTECTED]>:
>
> But why don't you just ship your users a dynamic lib? As far as I
> know, there are no restrictions on dynamic libs including static libs.
That is an alternative, but it requires a non-t
On 6/12/07 5:36 PM, Jesper Eskilson wrote:
> What you're asking for seems kinda weird. What's the motive?
>
> foo.obj and bar.obj uses symbols in mydll.dll, and I want to allow users
> of mystatic.lib to just have to link with mystaticlib.lib, and not with
> mydll.lib.
>
> Note that an impor
Forgot to cc the list.
-- Forwarded message --
From: Jesper Eskilson <[EMAIL PROTECTED]>
Date: 2007-jun-13 19:56
Subject: Re: [CMake] creating static library with references to other .lib files
To: Brandon Van Every <[EMAIL PROTECTED]>
2007/6/13, Brandon Van E
On 6/12/07, Jesper Eskilson <[EMAIL PROTECTED]> wrote:
2007/6/12, Brandon Van Every <[EMAIL PROTECTED]>:
>
> I don't know what the MSVC linker can accomplish. Would suggest reading
the MSVC docs to make sure it can be done.
I *know* that it can be done, since our current hand-written .vcproj fi
2007/6/12, Brandon Van Every <[EMAIL PROTECTED]>:
On some platforms, I bet the underlying linker AR can't even do it. I
know it can't put static libraries inside of static libraries, thats' why
everyone wants "convenience libraries" and I had to work on all that object
file fakery. Possibly i
On 6/12/07, Jesper Eskilson <[EMAIL PROTECTED]> wrote:
2007/6/7, Jesper Eskilson <[EMAIL PROTECTED]>:
>
>
>
> 2007/6/7, Brandon Van Every < [EMAIL PROTECTED]>:
> >
> > On 6/7/07, Jesper Eskilson < [EMAIL PROTECTED]> wrote:
> > > Hi all,
> > >
> > > I would like to be able to create a static li
2007/6/7, Jesper Eskilson <[EMAIL PROTECTED]>:
2007/6/7, Brandon Van Every <[EMAIL PROTECTED]>:
>
> On 6/7/07, Jesper Eskilson <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I would like to be able to create a static library on Windows which
> > includes an import library to a DLL, so that use
2007/6/7, Brandon Van Every <[EMAIL PROTECTED]>:
On 6/7/07, Jesper Eskilson <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I would like to be able to create a static library on Windows which
> includes an import library to a DLL, so that users of the static
> library do not need to specify the import
On 6/7/07, Jesper Eskilson <[EMAIL PROTECTED]> wrote:
Hi all,
I would like to be able to create a static library on Windows which
includes an import library to a DLL, so that users of the static
library do not need to specify the import library.
By chance, is your library a C library that is c
Hi all,
I would like to be able to create a static library on Windows which
includes an import library to a DLL, so that users of the static
library do not need to specify the import library.
CMake does not allow me to do this.
TARGET_LINK_LIBRARIES( FooLib BarLib )
does not work when creating
16 matches
Mail list logo