Re: [CMake] -fPIC .. (help w/ SET_TARGET_PROPERTIES)

2006-09-26 Thread Alan W. Irwin
On 2006-09-26 22:24-0600 Abe Stephens wrote: Alan W. Irwin wrote: On 2006-09-26 17:06-0600 Abe Stephens wrote: When I build object files for shared library targets cmake includes the position independent code flag (-fPIC). However when I build objects for static library targets the flag is o

Re: [CMake] -fPIC .. (help w/ SET_TARGET_PROPERTIES)

2006-09-26 Thread Abe Stephens
Alan W. Irwin wrote: On 2006-09-26 17:06-0600 Abe Stephens wrote: When I build object files for shared library targets cmake includes the position independent code flag (-fPIC). However when I build objects for static library targets the flag is omitted. I try to link the static lib to other

Re: [CMake] -fPIC flag on object build for static lib targets?

2006-09-26 Thread Andrey Rahmatullin
On Tue, Sep 26, 2006 at 07:33:44PM -0700, Alan W. Irwin wrote: > Could you clarify your goal here? Linking of shared lib (being built) with objects from static lib (built with cmake). Here the objects from the static lib are compiled without -fPIC. -- WBR, wRAR (ALT Linux Team) signature.asc De

Re: [CMake] Finding libs/headers on MSYS/MinGW

2006-09-26 Thread Brandon J. Van Every
Christian Ehrlicher wrote: I still don't understand why msys is needed anyway. Because it exists and people use it.  It is a standard support drill for various people.  That said, I'm not pleased with the official MSYS distribution as of late.  It runs ./configure stuff rather badly, a

Re: [CMake] Compiling dynamic source code

2006-09-26 Thread Brandon J. Van Every
Littlejohn, Todd wrote: All,   I am currently working on a project that auto-generating code based on a data model defined using XSD/XML.  The code generator I have developed is using CMake to make the code generator.  Next CMake is used to generate the C++ and Java data models. 

Re: [CMake] -fPIC flag on object build for static lib targets?

2006-09-26 Thread Alan W. Irwin
On 2006-09-26 17:06-0600 Abe Stephens wrote: When I build object files for shared library targets cmake includes the position independent code flag (-fPIC). However when I build objects for static library targets the flag is omitted. I try to link the static lib to other objects in a shared

[CMake] Compiling dynamic source code

2006-09-26 Thread Littlejohn, Todd
All,   I am currently working on a project that auto-generating code based on a data model defined using XSD/XML.  The code generator I have developed is using CMake to make the code generator.  Next CMake is used to generate the C++ and Java data models.  The problem I am having is how do I ge

[CMake] -fPIC flag on object build for static lib targets?

2006-09-26 Thread Abe Stephens
When I build object files for shared library targets cmake includes the position independent code flag (-fPIC). However when I build objects for static library targets the flag is omitted. I try to link the static lib to other objects in a shared library the linker chokes. How can I explicit

Re: [CMake] How to get current directory of the included files

2006-09-26 Thread Brad King
Eduard Bloch wrote: > Hello, > > I need to add a certain variable and a set of strings in a set of > applications, beeing in different paths. This is required because a > static library is compiled with different settings, therefore the set of > additional libraries varies. > > To avoid code dupl

Re: [CMake] 3rd party modules

2006-09-26 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > Got it. Thank You. > Now, there is another thing that I can't seem to find. > If I have a Foo library with CMakeLists.txt: > ADD_LIBRARY(Foo foo.cpp) > then I have FooConfig.cmake for it: > SET(FOO_LIBRARY @LIBRARY_OUTPUT_PA

[CMake] How to get current directory of the included files

2006-09-26 Thread Eduard Bloch
Hello, I need to add a certain variable and a set of strings in a set of applications, beeing in different paths. This is required because a static library is compiled with different settings, therefore the set of additional libraries varies. To avoid code duplication and adding the test multiple