Re: [CMake] Study of Cache Interaction with If Statements

2009-06-14 Thread Michael Wild
On 12. Jun, 2009, at 19:31, Hostile Fork wrote: Hello cmakers, I have been looking at some unusual ways in which values stored in the cache interact with the 'if' statement. I'll start with a simple case that matches typical programming intuition: set (VAR1 ON) set (VAR2

Re: [CMake] [Insight-developers] 64 bit build detection

2009-06-14 Thread Michael Wild
On 15. Jun, 2009, at 0:15, Hendrik Sattler wrote: Am Sonntag 14 Juni 2009 22:05:14 schrieb Michael Wild: On Mac OS X one shouldn't do this kind of detection during configure step, because as has been mentioned a single file can be compiled multiple times for different architectures during one

Re: [CMake] How to create a static library out of other static libraries in CMAKE ?

2009-06-14 Thread Xiangyun Kong
Thanks. When I link the mylib with other objects to form a dynamic library, I got a lot of undefined symbols. Xiangyun --- On Sun, 6/14/09, Tyler Roscoe wrote: > From: Tyler Roscoe > Subject: Re: [CMake] How to create a static library out of other static > libraries in CMAKE ? > To: "Xiangy

Re: [CMake] How to create a static library out of other static libraries in CMAKE ?

2009-06-14 Thread Tyler Roscoe
On Sun, Jun 14, 2009 at 06:55:15PM -0700, Xiangyun Kong wrote: > I take it back, even I specify the full names, > the library is built without taking those static libraries linked > into the target library. Oh right. It's still the weekend here :). add_library (myLib STATIC ${some_object_files})

Re: [CMake] How to create a static library out of other static libraries in CMAKE ?

2009-06-14 Thread Xiangyun Kong
I take it back, even I specify the full names, the library is built without taking those static libraries linked into the target library. Thanks. Xiangyun --- On Sun, 6/14/09, Xiangyun Kong wrote: > From: Xiangyun Kong > Subject: Re: [CMake] How to create a static library out of other stati

Re: [CMake] How to create a static library out of other static libraries in CMAKE ?

2009-06-14 Thread Xiangyun Kong
It works if I specify the full name of the libraries including the extension. But I would like to use a system-independent names of the libraries. Thanks. Xiangyun --- On Sun, 6/14/09, Tyler Roscoe wrote: > From: Tyler Roscoe > Subject: Re: [CMake] How to create a static library out of ot

Re: [CMake] How to create a static library out of other static libraries in CMAKE ?

2009-06-14 Thread Tyler Roscoe
On Sun, Jun 14, 2009 at 03:40:56PM -0700, Xiangyun Kong wrote: > Is there a way in CMAKE to create a static library out of > existing static libraries and object files ? Does something like this work? add_library (myLib STATIC ${some_libraries} ${some_object_files}) tyler _

[CMake] How to create a static library out of other static libraries in CMAKE ?

2009-06-14 Thread Xiangyun Kong
Is there a way in CMAKE to create a static library out of existing static libraries and object files ? Thanks for any helps. Xiangyun ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/op

Re: [CMake] [Insight-developers] 64 bit build detection

2009-06-14 Thread Hendrik Sattler
Am Sonntag 14 Juni 2009 22:05:14 schrieb Michael Wild: > On Mac OS X one shouldn't do this kind of detection during configure > step, because as has been mentioned a single file can be compiled > multiple times for different architectures during one single compiler > invocation. The size of void* a

Re: [CMake] [Insight-developers] 64 bit build detection

2009-06-14 Thread Michael Wild
On Mac OS X one shouldn't do this kind of detection during configure step, because as has been mentioned a single file can be compiled multiple times for different architectures during one single compiler invocation. The size of void* and even endianness can change. It is preferable to have

[CMake] Hide target in Visual Studio

2009-06-14 Thread Macumber, Daniel
Hello, I am looking for info on how to hide (make not visible) targets in Visual Studio. I am working with generated code and am compiling several hundred individual SWIG dll's (I have a CMake macro that makes one SWIG target for each object in the generated code, all the generated code cannot

Re: [CMake] How do I link an executable WITHOUT standard libraries?

2009-06-14 Thread Hendrik Sattler
Am Samstag 13 Juni 2009 00:16:43 schrieb Eric Lemings: > I've tried clearing the CMAKE_STANDARD_LIBRARIES, > CMAKE_C_STANDARD_LIBRARIES, and CMAKE_CXX_STANDARD_LIBRARIES variables > and standard libraries still get linked into my executable. How do I > disable this? Read the compiler/linker docum