[CMake] linkage order of static libraries and object files (ENABLE_EXPORTS)

2013-11-01 Thread Ivan Sergio Borgonovo
I'm trying to convert an embedded eclipse project to CMake with a python script. I reached a point where everything compile as I want, everything get listed in the linking step but libraries are in the wrong order and linking fail. Just reordering the libraries list and running the linking proces

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread J Decker
sorry and I should ask; after reading a bit more context; why are you using cmake-gui if you have -D's to pass already? but the macro does allow you to export them to the environment instead; it doesn't update what was configured though; and actually most places I use the same macro but without t

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread J Decker
I have a macro . (maybe it has a horrible name...) macro( DEFINE_DEFAULT variable default ) if( NOT DEFINED ${variable} ) #message( "variable ${variable} not defined (command line)" ) set( ${variable} $ENV{${variable}} CACHE STRING "no description available") if( "${${v

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread physhh .
The question is: What is the expected behavior? Execute it per configure but don't overwrite variables? What if one really wants to overwrite? Execute it once every time the binary directory changes? Changing stuff only through setting the path is bad. Other possiblities? On Sat, Nov 2, 2013 at

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread Matthew Woehlke
On 2013-11-01 19:39, Matthew Woehlke wrote: On 2013-11-01 17:35, physhh . wrote: I've tried to implement it in the same way as CCMake seem to do it. Because I can't compare it => Could somone with access to ccmake test this: - Start CCMake with -D foo=123 - Configure - Question: Is foo displayed

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread Matthew Woehlke
On 2013-11-01 17:35, physhh . wrote: I've tried to implement it in the same way as CCMake seem to do it. Because I can't compare it => Could somone with access to ccmake test this: - Start CCMake with -D foo=123 - Configure - Question: Is foo displayed in the variable list? Yes. - Add/Edit fo

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread physhh .
Current patch: http://pastebin.com/DfGZtGQT On Fri, Nov 1, 2013 at 10:35 PM, physhh . wrote: > I've tried to implement it in the same way as CCMake seem to do it. > Because I can't compare it => > Could somone with access to ccmake test this: > - Start CCMake with -D foo=123 > - Configure > - Q

Re: [CMake] does cmake get dependencies between asm files? and when said so does it link them?

2013-11-01 Thread Ivan Sergio Borgonovo
On Fri, 1 Nov 2013 20:08:05 +0100 Alexander Neundorf wrote: > and the name of the library target ? Still crt0 or something else ? BTW I'm using 2.8.11.2 in Debian sid -- Ivan Sergio Borgonovo http://www.webthatworks.it -- Powered by www.kitware.com Please keep messages on-topic and check th

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread physhh .
I've tried to implement it in the same way as CCMake seem to do it. Because I can't compare it => Could somone with access to ccmake test this: - Start CCMake with -D foo=123 - Configure - Question: Is foo displayed in the variable list? - Add/Edit foo to some other value - Configure - Question: Wa

Re: [CMake] does cmake get dependencies between asm files? and when said so does it link them?

2013-11-01 Thread Ivan Sergio Borgonovo
On Fri, 1 Nov 2013 20:08:05 +0100 Alexander Neundorf wrote: > On Friday 01 November 2013, Ivan Sergio Borgonovo wrote: > > On Fri, 1 Nov 2013 17:36:33 +0100 > > > > Alexander Neundorf wrote: > > > > If it was supposed to work right out of the box without fiddling > > > > with > > > > > > havin

Re: [CMake] does cmake get dependencies between asm files? and when said so does it link them?

2013-11-01 Thread Alexander Neundorf
On Friday 01 November 2013, Ivan Sergio Borgonovo wrote: > On Fri, 1 Nov 2013 17:36:33 +0100 > > Alexander Neundorf wrote: > > > If it was supposed to work right out of the box without fiddling > > > with > > > > having to set the LANGUAGE is expected for unusual file extensions. > > With that,

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread Matthew Woehlke
On 2013-11-01 11:39, physhh . wrote: that's interesting. I'm currently at a windows only machine so i can't check out ccmake but can only lookup the source. It appears that ALL parameters get "forwarded" to cmake - at least that's what cmCursesMainForm.cxx:52 this->CMakeInstance->SetArgs(this->

Re: [CMake] does cmake get dependencies between asm files? and when said so does it link them?

2013-11-01 Thread Ivan Sergio Borgonovo
On Fri, 1 Nov 2013 17:36:33 +0100 Alexander Neundorf wrote: > > If it was supposed to work right out of the box without fiddling > > with > having to set the LANGUAGE is expected for unusual file extensions. > With that, it should work. That's OK. I just had to understand how. > Could you try

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread physhh .
Yes but not all cmake projects which I build are mine. So i would still have to modify a CMakeLists from someone else, which is in my opinion a bad thing. When you have the possiblity to inject cmake stuff without modifying the project itself you can implement a clean separation between project dep

Re: [CMake] does cmake get dependencies between asm files? and when said so does it link them?

2013-11-01 Thread Alexander Neundorf
On Friday 01 November 2013, Ivan Sergio Borgonovo wrote: > On Fri, 1 Nov 2013 12:58:32 +0100 > > Alexander Neundorf wrote: > > On Friday 01 November 2013, Ivan Sergio Borgonovo wrote: > > > On Fri, 1 Nov 2013 11:37:10 +0100 > > > > > > Alexander Neundorf wrote: > > > > so crt0.x is the missing

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread John Drescher
> +1 for updating cmake-gui to work equally to ccmake > > But my opinion regarding CMAKE_MODULE_PATH is different. The problem is that > alot of the default find-modules don't work because the dependency is not in > the location where the find-module expects it. Currently there are only two > worka

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread physhh .
+1 for updating cmake-gui to work equally to ccmake But my opinion regarding CMAKE_MODULE_PATH is different. The problem is that alot of the default find-modules don't work because the dependency is not in the location where the find-module expects it. Currently there are only two workarounds: - C

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread Bill Hoffman
On 11/1/2013 10:47 AM, physhh . wrote: If cmake is used directly from the command line, it's possible to pass a bunch of options (http://www.cmake.org/cmake/help/v2.8.12/cmake.html#section_Options). This is nice because with this it's possible to use default settings - even if the cache get delet

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread physhh .
Hey Matthew, that's interesting. I'm currently at a windows only machine so i can't check out ccmake but can only lookup the source. It appears that ALL parameters get "forwarded" to cmake - at least that's what cmCursesMainForm.cxx:52 > this->CMakeInstance->SetArgs(this->Args); looks to me. Why

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread Matthew Woehlke
On 2013-11-01 10:47, physhh . wrote: What I'm looking for: If cmake is used directly from the command line, it's possible to pass a bunch of options. This is nice because with this it's possible to use default settings - even if the cache get deleted. ccmake accepts e.g. -D options to set CMake

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread Jean-Christophe Fillion-Robin
Hi, More specifically, it could be an entry named "More Options ..." in the already available "Options" menu. Or you could simply expose more command line option directly in that menu. Jc On Fri, Nov 1, 2013 at 11:05 AM, physhh . wrote: > Hi Jean, > I'm not quite sure I've understood your fee

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread physhh .
Hi Jean, I'm not quite sure I've understood your feedback correctly. You mean it would be nice to add a panel to the gui which lists all forwarded options with description text? Will try to create a patch for this. Thanks for your time On Fri, Nov 1, 2013 at 3:52 PM, Jean-Christophe Fillion-Rob

Re: [CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread Jean-Christophe Fillion-Robin
Hi Physhh, I like the idea. Instead, a gui panel (with tooltips, doc, ...) should be autogenerated from the option associated to the corresponding cmake executable. Would be happy to review changes / patches. Thanks Jc On Fri, Nov 1, 2013 at 10:47 AM, physhh . wrote: > I've already searched

[CMake] Forwarding parameters to cmake through cmake-gui

2013-11-01 Thread physhh .
I've already searched for a feature like this but was not able to find it. Then i've looked up in the cmake-gui source code but couldn't find anything related. What I'm looking for: If cmake is used directly from the command line, it's possible to pass a bunch of options ( http://www.cmake.org/cma

Re: [CMake] does cmake get dependencies between asm files? and when said so does it link them?

2013-11-01 Thread Ivan Sergio Borgonovo
On Fri, 1 Nov 2013 12:58:32 +0100 Alexander Neundorf wrote: > On Friday 01 November 2013, Ivan Sergio Borgonovo wrote: > > On Fri, 1 Nov 2013 11:37:10 +0100 > > > > Alexander Neundorf wrote: > > > so crt0.x is the missing one, right ? > > > Are you sure it is not compiled ? > > > > Absolutely.

Re: [CMake] does cmake get dependencies between asm files? and when said so does it link them?

2013-11-01 Thread Alexander Neundorf
On Friday 01 November 2013, Ivan Sergio Borgonovo wrote: > On Fri, 1 Nov 2013 11:37:10 +0100 > > Alexander Neundorf wrote: > > so crt0.x is the missing one, right ? > > Are you sure it is not compiled ? > > Absolutely. Once I've added > add_dependencies(someotherasm crt0.x) > crt0.x got compiled

[CMake] does cmake get dependencies between asm files? and when said so does it link them?

2013-11-01 Thread Ivan Sergio Borgonovo
On Fri, 1 Nov 2013 11:37:10 +0100 Alexander Neundorf wrote: > so crt0.x is the missing one, right ? > Are you sure it is not compiled ? Absolutely. Once I've added add_dependencies(someotherasm crt0.x) crt0.x got compiled BUT not linked. But even after I succede to compile libcrt0.a and even if

Re: [CMake] assembler with non standard extension with gcc compiler

2013-11-01 Thread Alexander Neundorf
On Thursday 31 October 2013, Ivan Sergio Borgonovo wrote: > On Thu, 31 Oct 2013 21:17:11 +0100 > > Alexander Neundorf wrote: > > On Thursday 31 October 2013, Ivan Sergio Borgonovo wrote: > > > On Thu, 31 Oct 2013 18:01:29 +0100 > > > > > > Alexander Neundorf wrote: > > > > Did you try setting t