[CMake] Problem in escape sequence while add_definition.

2011-03-03 Thread Ashish Mahamuni
I am using cmake 2.8 version. My cmake contains following statements. cmake_policy(SET CMP0005 NEW) add_definitions( -DSTORE="\"XYZ\"" ) I am using VS 8 (2005). cmake writes the build file(vcproj) successfully without any warning When I see, vcproj. It contains \"\&qout;XYZ\"\&qout; So basi

Re: [CMake] QtCreator project generator

2011-03-03 Thread Campbell Barton
On Thu, Mar 3, 2011 at 5:10 PM, Alexander Neundorf wrote: > On Tuesday 01 March 2011, Campbell Barton wrote: >> On Tue, Mar 1, 2011 at 2:47 PM, Marcus D. Hanwell >> >> wrote: >> > On Tue, Mar 1, 2011 at 9:15 AM, John Drescher > wrote: >> >> On Tue, Mar 1, 2011 at 6:45 AM, Campbell Barton > wrot

Re: [CMake] use_mangled_mesa as a scriptable operation

2011-03-03 Thread Harinarayan Krishnan
Thanks for looking into this. I have posted this request on the bug tracker. http://public.kitware.com/Bug/view.php?id=11926 Best regards, Hari 2011/3/3 Alexander Neundorf > On Thursday 03 March 2011, Harinarayan Krishnan wrote: > > Hi All, > >

Re: [CMake] use_mangled_mesa as a scriptable operation

2011-03-03 Thread Alexander Neundorf
On Thursday 03 March 2011, Harinarayan Krishnan wrote: > Hi All, > > I would like to be able to script the cmake compatibility command > use_mangle_mesa(mesapath/include/GL some_other_path). Please put this in the cmake bug tracker, I'll take care of it. Alex _

Re: [CMake] Set --build-config in a ctest script?

2011-03-03 Thread David Cole
In CMake 2.8.2 and later, you can: set(CTEST_CONFIGURATION_TYPE "Release") # or Debug in the ctest -S script. That will influence both the ctest_build and ctest_test commands. HTH, David On Thu, Mar 3, 2011 at 2:09 PM, Macumber, Daniel wrote: > Is it possible to set the build config in a

[CMake] Set --build-config in a ctest script?

2011-03-03 Thread Macumber, Daniel
Is it possible to set the build config in a ctest script rather than pass it in on the command line? I haven't found a list of ctest variables in the documentation like there is for cmake. Thanks a lot, Dan ___ Powered by www.kitware.com Visit other

Re: [CMake] make didn't compile

2011-03-03 Thread Alexander Neundorf
On Thursday 03 March 2011, Enrique Izaguirre wrote: > Hello friends, > > As far as I have been investigating this problem, seems that GNU compilers > have a problem when combining -c flag with multiple files and -o flag to > generate an executable. > > The problem is that CMake somehow is generatin

Re: [CMake] make didn't compile

2011-03-03 Thread Enrique Izaguirre
Hello friends, As far as I have been investigating this problem, seems that GNU compilers have a problem when combining -c flag with multiple files and -o flag to generate an executable. The problem is that CMake somehow is generating the compile command, and assembling it wrongly. Is there any w

Re: [CMake] Stop substitution in passthrough list arguments?

2011-03-03 Thread Alexander Neundorf
On Thursday 03 March 2011, Chris Green wrote: > Hi, > > I have a macro which takes a variety of arguments and does all the > things necessary for making a test: compiling the exec (or copying the > script), putting input files in the right place and setting desired > properties on the test. I use t

Re: [CMake] QtCreator project generator

2011-03-03 Thread Alexander Neundorf
On Tuesday 01 March 2011, Campbell Barton wrote: > On Tue, Mar 1, 2011 at 2:47 PM, Marcus D. Hanwell > > wrote: > > On Tue, Mar 1, 2011 at 9:15 AM, John Drescher wrote: > >> On Tue, Mar 1, 2011 at 6:45 AM, Campbell Barton wrote: > >>> QT-Creator which currently supports CMake by reading code::

Re: [CMake] libdir question

2011-03-03 Thread Alexander Neundorf
On Wednesday 02 March 2011, Frans de Boer wrote: > Dear Readers, > > I guess that my question has been asked many time before, but I could > not find it. So her it is (again): Using './configure --libdir=...' one > can set the base directory where the libraries are supposed to be > placed. CMake ha

[CMake] use_mangled_mesa as a scriptable operation

2011-03-03 Thread Harinarayan Krishnan
Hi All, I would like to be able to script the cmake compatibility command use_mangle_mesa(mesapath/include/GL some_other_path). For example: %cat scriptfile cmake_minimum_required(VERSION 2.8) use_mangled_mesa(mesapath/include/GL some_other_path) %cmake -P scriptfile Ultimately it would be nic

Re: [CMake] few solutions with cmake

2011-03-03 Thread Bill Hoffman
On 3/3/2011 9:59 AM, gekso wrote: No, only one solution (someproject.sln) for all three targets.. 2.8.3 version 2011/3/3 Robert Bielik: Anton Sibilev skrev 2011-03-03 15:49: Hello! One more question.. For example I have such structure: folder:base CMakeLists.txt (with PROJECT(someproject

Re: [CMake] few solutions with cmake

2011-03-03 Thread gekso
David, it has helped me, thanks :) 2011/3/3 David Cole : > On Thu, Mar 3, 2011 at 9:52 AM, Robert Bielik > wrote: >> Anton Sibilev skrev 2011-03-03 15:49: >>> >>> Hello! One more question.. For example I have such structure: >>> >>> folder:base >>> CMakeLists.txt (with PROJECT(someproject))

Re: [CMake] few solutions with cmake

2011-03-03 Thread Robert Bielik
David Cole skrev 2011-03-03 15:57: Solution files correspond to "project" commands in CMakeLists.txt. Add a "project" command at the top of "app/CMakeLists.txt" Of course, I usually put a project command at top of CMakeLists.txt so I get the solution files... didn't cross my mind that not eve

Re: [CMake] few solutions with cmake

2011-03-03 Thread gekso
No, only one solution (someproject.sln) for all three targets.. 2.8.3 version 2011/3/3 Robert Bielik : > Anton Sibilev skrev 2011-03-03 15:49: >> >> Hello! One more question.. For example I have such structure: >> >> folder:base >> CMakeLists.txt (with PROJECT(someproject)) >> folder:lib1

Re: [CMake] few solutions with cmake

2011-03-03 Thread David Cole
On Thu, Mar 3, 2011 at 9:52 AM, Robert Bielik wrote: > Anton Sibilev skrev 2011-03-03 15:49: >> >> Hello! One more question.. For example I have such structure: >> >> folder:base >> CMakeLists.txt (with PROJECT(someproject)) >> folder:lib1 >> CMakeLists.txt >> folder:lib2 >> ..

Re: [CMake] few solutions with cmake

2011-03-03 Thread Robert Bielik
Anton Sibilev skrev 2011-03-03 15:49: Hello! One more question.. For example I have such structure: folder:base CMakeLists.txt (with PROJECT(someproject)) folder:lib1 CMakeLists.txt folder:lib2 CMakeLists.txt folder:app CMakeLists.txt and result is somepr

[CMake] few solutions with cmake

2011-03-03 Thread Anton Sibilev
Hello! One more question.. For example I have such structure: folder:base CMakeLists.txt (with PROJECT(someproject)) folder:lib1 CMakeLists.txt folder:lib2 CMakeLists.txt folder:app CMakeLists.txt and result is someproject.sln with 3 projects lib1, lib2, ap

Re: [CMake] Multiple library configurations with the same output name

2011-03-03 Thread Eric Noulard
2011/3/3 Alexey Livshits : > Hello CMakers, > suppose I've got a library foo with tow configurations: foo_1 and > foo_2. Both versions should have the same output name: foo. The > problem is, the output directory for both ist the same, so the second > will overwrite the first. You can definition t

[CMake] Multiple library configurations with the same output name

2011-03-03 Thread Alexey Livshits
Hello CMakers, suppose I've got a library foo with tow configurations: foo_1 and foo_2. Both versions should have the same output name: foo. The problem is, the output directory for both ist the same, so the second will overwrite the first. What's the best way to organize it? -- BG, Alexey __

Re: [CMake] IF Matches

2011-03-03 Thread Michael Wild
On 03/03/2011 11:25 AM, Micha Renner wrote: > Hello, > > IF("bgdgbBromNN" MATCHES "Brom") > is true, > but > IF("Brom" MATCHES "bgdgbBromNN") > is false. > > Should be same, or? > > Greetings > > Micha No, the right-hand-side of MATCHES is a regular expression. Michael

[CMake] IF Matches

2011-03-03 Thread Micha Renner
Hello, IF("bgdgbBromNN" MATCHES "Brom") is true, but IF("Brom" MATCHES "bgdgbBromNN") is false. Should be same, or? Greetings Micha ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com

Re: [CMake] QtCreator project generator

2011-03-03 Thread Rolf Eike Beer
> On Tue, Mar 1, 2011 at 3:45 PM, Campbell Barton > Hi, my original questions is still unanswered. > I'm not familiar with how the CMake project goes about these decisions. > > Are there any developers on this list who might review patches for new > project generators? > If so, any idea if this w

Re: [CMake] QtCreator project generator

2011-03-03 Thread Campbell Barton
On Tue, Mar 1, 2011 at 3:45 PM, Campbell Barton wrote: > On Tue, Mar 1, 2011 at 2:47 PM, Marcus D. Hanwell > wrote: >> On Tue, Mar 1, 2011 at 9:15 AM, John Drescher wrote: >>> On Tue, Mar 1, 2011 at 6:45 AM, Campbell Barton >>> wrote: QT-Creator which currently supports CMake by reading c