[CMake] Performance difference between SET and LIST ?

2009-07-08 Thread Alexandre.Feblot
Hi, with a very long list, is there a performance difference between using SET and LIST to just declare a variable ? SET (var val1 val2 ... val2000) or SET(var) LIST(APPEND var val1 val2 ... val2000) Thanks Regards, Alexandre Feblot This email was sent to y

Re: [CMake] Have an export file split in 2 parts? Need caused by a cmake bug?

2009-07-07 Thread Alexandre.Feblot
From: Alexander Neundorf [mailto:a.neundorf-w...@gmx.net] Sent: Monday, 06 July 2009 21:52 > On Monday 06 July 2009, alexandre.feb...@thomsonreuters.com wrote: > > Hi, > > > > I need to export() some libraries, but I need to have the part > > > > ADD_LIBRARY( STATIC IMPORTED) > > > > and the

[CMake] Have an export file split in 2 parts? Need caused by a cmake bug?

2009-07-06 Thread Alexandre.Feblot
Hi, I need to export() some libraries, but I need to have the part ADD_LIBRARY( STATIC IMPORTED) and the part SET_PROPERTY(TARGET APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) SET_TARGET_PROPERTIES( PROPERTIES IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE ";"

Re: [CMake] Copy target from different configurations

2009-06-16 Thread Alexandre.Feblot
Cool, Here it is: http://public.kitware.com/Bug/view.php?id=9163 Thanks Cordialement / Regards, Alexandre Feblot -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Brad King Sent: Tuesday, 16 June 2009 17:48 To: Feblot, Alexandre (M Risk) Cc:

Re: [CMake] Removing flags added by the Platform modules

2009-06-16 Thread Alexandre.Feblot
Hi, look at this variable: CMAKE_USER_MAKE_RULES_OVERRIDE_ Cordialement / Regards, Alexandre Feblot -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Will Dicharry Sent: Wednesday, 03 June 2009 01:23 To: cmake@cmake.org Subject: [CMake] Removi

Re: [CMake] Copy target from different configurations

2009-06-16 Thread Alexandre.Feblot
Hi, yes, this is definitely what I would like, there is no other way to get rid of these Debug/Release directories. I even would like to have the corresponding variables: - CMAKE_LIBRARY_OUTPUT_DIRECTORY_ - CMAKE_ARCHIVE_OUTPUT_DIRECTORY_ - CMAKE_RUNTIME_OUTPUT_DIRECTORY_ Do I need to fill

Re: [CMake] foreach() bug?

2009-05-07 Thread Alexandre.Feblot
Ok, thanks for the info. Can I expect this "IN" mode to be delivered in 2.6.5? Alexandre -Original Message- From: Brad King [mailto:brad.k...@kitware.com] alexandre.feb...@thomsonreuters.com wrote: > foreach(arg ${list}) [snip] > The empty element has been discarded by foreach(). Is th

Re: [CMake] foreach() bug?

2009-05-06 Thread Alexandre.Feblot
Bill, it seems this policy doesn't affect foreach(): macro(test pol) cmake_policy(SET CMP0007 ${pol}) set(list) list(APPEND list A B "" C D) list(LENGTH list len) message("List: ${list} (length=${len})") foreach(arg ${list}) message("List elem: ${arg}") endfore

Re: [CMake] foreach() bug?

2009-05-05 Thread Alexandre.Feblot
ping? Hi, this code: list(APPEND list A B "" C D) message("List: ${list}") foreach(arg ${list}) message("List elem: ${arg}") endforeach() has the following result: List: A;B;;C;D List elem: A List elem: B List elem: C List elem: D T

Re: [CMake] using IMPORTED targets in multiple projects within one CMake tree

2009-05-05 Thread Alexandre.Feblot
I saw this too. IMHO, it's a bug. If it's a feature, I don't see the point. I ended defining all my imported targets in the top directory, to be able to use them wherever I need them. Alexandre -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of

[CMake] foreach() bug?

2009-05-04 Thread Alexandre.Feblot
Hi, this code: list(APPEND list A B "" C D) message("List: ${list}") foreach(arg ${list}) message("List elem: ${arg}") endforeach() has the following result: List: A;B;;C;D List elem: A List elem: B List elem: C List elem: D The empty element has been discarded by fo

Re: [CMake] Help cmake to resolve link lines with multiple circulardependencies?

2009-04-23 Thread Alexandre.Feblot
Eric, in fact we build static libraries. And we currently use a custom build system with a "handmade" link line. Alexandre -Original Message- From: Eric Noulard [mailto:eric.noul...@gmail.com] Sent: Thursday, 23 April 2009 15:04 To: Feblot, Alexandre (M Risk) Cc: cmake@cmake.org Subject

[CMake] Help cmake to resolve link lines with multiple circular dependencies?

2009-04-23 Thread Alexandre.Feblot
Hi, I have some code with multiple circular dependencies. I rely on the transitive dependency mechanism to create the link line. Following is a short example of libs which can't be resolved properly. ==> My question is: if there a way to help cmake create a working link line. In the exampl

Re: [CMake] Automatic depedencies added by target_link_libraries"breaks" make -k ?

2009-04-17 Thread Alexandre.Feblot
Oh, stupid me, I should have rtfm gmake first. That was it, of course. Thanks a lot. Alexandre -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Alexander Neundorf Sent: Thursday, 16 April 2009 21:48 On Thursday 16 April 2009, alexandre.fe

[CMake] Automatic depedencies added by target_link_libraries "breaks" make -k ?

2009-04-16 Thread Alexandre.Feblot
Hi, Let 's say I have 2 libraries libA and libB, and libA depends on libB, i.e. I set: target_link_libraries(libA libB). My goal is to build as much as possible of the libA and libB sources to detect all possible errors and send an error report to developers. For this, I compile the proje

Re: [CMake] Using C++ compilers for C source files?

2009-04-07 Thread Alexandre.Feblot
By the way, I filled a (minor) bug for that: http://public.kitware.com/Bug/view.php?id=8851 Regards, Alexandre -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Nadir SOUALEM Sent: Tuesday, 07 April 2009 13:01 To: Robert Blake; cmake@cmak