Re: [CMake] Running unit test as part of the build

2011-09-13 Thread Michael Hertling
On 09/13/2011 11:05 AM, Michael Wild wrote: > On 09/12/2011 09:06 PM, Erik Johansson wrote: >> On Mon, Sep 12, 2011 at 20:30, Michael Wild wrote: >>> How about using a custom command that runs the unit test using a >>> wrapper script that upon successful completion creates a stamp-file and >>> dep

Re: [CMake] Diff output from CMake?

2011-09-13 Thread Eric Noulard
2011/9/13 Clifford Yapp : > Eric - > > Excellent!  That looks like it will do the trick. > > Thank you! Please tell us about the performance but from the implementation of REMOVE_ITEM I bet the performance shouldn't be that good: inside cmListCommand.cxx: bool cmListCommand ::HandleRemoveItemCom

Re: [CMake] creating a library -- folder layout??

2011-09-13 Thread Eric Noulard
2011/9/13 Cristobal Navarro : > hello everyone! > this is my first post on the mailing list > i am making a shared library > i have everything configured properly so that cmake creates de makefile > scripts as espected > at the moment cmake is installing my library by default into: > /usr/local/lib

[CMake] creating a library -- folder layout??

2011-09-13 Thread Cristobal Navarro
hello everyone! this is my first post on the mailing list i am making a shared library i have everything configured properly so that cmake creates de makefile scripts as espected at the moment cmake is installing my library by default into: /usr/local/lib/mylib.so.0.1 (and the symlink mylib.so)

Re: [CMake] Diff output from CMake?

2011-09-13 Thread Clifford Yapp
Eric - Excellent! That looks like it will do the trick. Thank you! CY On Tue, Sep 13, 2011 at 4:53 PM, Eric Noulard wrote: > > If I understand it well you want to compute "symmetric difference". > > Assuming BUILD_FILES and SVN_FILES initially contains the whole list of > names. > Then coul

Re: [CMake] Diff output from CMake?

2011-09-13 Thread Clifford Yapp
On Tue, Sep 13, 2011 at 3:52 PM, Clifford Yapp wrote: > (if CMake had sucked in openbsd's diff to implement its diff abilities, for > example) > Ah, nevermind - I see the key file still has the advertising clause BSD. Scratch that. ___ Powered by www.k

Re: [CMake] Diff output from CMake?

2011-09-13 Thread Eric Noulard
2011/9/13 Clifford Yapp : > > > On Tue, Sep 13, 2011 at 1:58 PM, David Cole wrote: >> >> On Tue, Sep 13, 2011 at 1:39 PM, Alexander Neundorf >> wrote: >> > On Tuesday, September 13, 2011 05:07:00 AM Clifford Yapp wrote: >> >> I am trying to compare two large lists of file paths (about 14,000 >> >

Re: [CMake] cmLocalGenerator::GenerateInstallRules() needlessly slow?/missing optimization?

2011-09-13 Thread Andreas Mohr
On Tue, Sep 13, 2011 at 03:33:01PM +0200, Alexander Neundorf wrote: > On Wednesday, September 07, 2011 11:12:55 AM Andreas Mohr wrote: > > Depending on actual implementation of CMake (whether it has some caching > > logic or not), this might be woefully inefficient, > > causing a possibly _filesyst

Re: [CMake] Diff output from CMake?

2011-09-13 Thread Clifford Yapp
On Tue, Sep 13, 2011 at 1:58 PM, David Cole wrote: > On Tue, Sep 13, 2011 at 1:39 PM, Alexander Neundorf > wrote: > > On Tuesday, September 13, 2011 05:07:00 AM Clifford Yapp wrote: > >> I am trying to compare two large lists of file paths (about 14,000 lines > >> each) to identify which entries

Re: [CMake] Diff output from CMake?

2011-09-13 Thread David Cole
On Tue, Sep 13, 2011 at 1:39 PM, Alexander Neundorf wrote: > On Tuesday, September 13, 2011 05:07:00 AM Clifford Yapp wrote: >> I am trying to compare two large lists of file paths (about 14,000 lines >> each) to identify which entries in each list are missing from the other, >> and while I can ge

Re: [CMake] Diff output from CMake?

2011-09-13 Thread Alexander Neundorf
On Tuesday, September 13, 2011 05:07:00 AM Clifford Yapp wrote: > I am trying to compare two large lists of file paths (about 14,000 lines > each) to identify which entries in each list are missing from the other, > and while I can get CMake to do it I must be doing it the wrong way > because the r

Re: [CMake] question about Eclipse CDT Generators

2011-09-13 Thread Alexander Neundorf
On Tuesday, September 06, 2011 06:53:23 PM cheshirekow wrote: > Hi cmake list, > > I'm using cmake to manage a CUDA project, and I'm generating an eclipse > project for development. > > Since CDT doesn't natively understand the output from the nvidia > compiler, I've created a new regex error par

Re: [CMake] cmLocalGenerator::GenerateInstallRules() needlessly slow?/missing optimization?

2011-09-13 Thread Alexander Neundorf
On Wednesday, September 07, 2011 11:12:55 AM Andreas Mohr wrote: > Hi, > > just saw that the main cmake_install.cmake contains (at the end): > > FILE(WRITE > "[${CMAKE_BINARY_DIR}]/${CMAKE_INSTALL_MANIFEST}" > "") > FOREACH(file ${CMAKE_INSTALL_MANIFEST_FILES}) > FILE(APPEND > "[${CMAKE_BINARY_

Re: [CMake] VS 2010 macro

2011-09-13 Thread James Bigler
On Tue, Aug 30, 2011 at 9:11 AM, Bill Hoffman wrote: > On 8/30/2011 4:11 AM, Andrea Galeazzi wrote: > >> Hi, >> I'd like to know if the bug 0011258 >> > >> will be fixed or the >> >> community simply

Re: [CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

2011-09-13 Thread Peter Collingbourne
On Tue, Sep 13, 2011 at 08:40:32AM -0400, Clifford Yapp wrote: > On Sun, Sep 11, 2011 at 11:01 PM, Peter Collingbourne wrote: > > > > > > It looks like various custom commands aren't running (some tcl related > > > stuff, docbook documentation generation) - are custom commands currently > > > supp

Re: [CMake] Using CMake for Eclipse Indigo / CDT 8

2011-09-13 Thread svdbg
> Which menu are you using to try the import? Here was the error : I was trying to import a C++ project. > I do not observe the same behavior (no "xml" file required) > .cproject and .project are xml files. Yes, but without the XML extension. :-) > Did you try what's described here: > http://w

Re: [CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

2011-09-13 Thread Clifford Yapp
On Sun, Sep 11, 2011 at 11:01 PM, Peter Collingbourne wrote: > > > It looks like various custom commands aren't running (some tcl related > > stuff, docbook documentation generation) - are custom commands currently > > supported? > > Yes, custom commands and targets are supported. There was a bug

Re: [CMake] Using CMake for Eclipse Indigo / CDT 8

2011-09-13 Thread Eric Noulard
2011/9/13 : > Hello, > > I usually develop with Visual STudio, but I have to code now on Eclipse so > that my software is runnable on Linux. > I so installed the last release of Eclipse, and want to run CMake 2.8.5 to > export an Eclipse project. > The solutions/projects that CMake generated for

[CMake] Using CMake for Eclipse Indigo / CDT 8

2011-09-13 Thread svdbg
Hello, I usually develop with Visual STudio, but I have to code now on Eclipse so that my software is runnable on Linux. I so installed the last release of Eclipse, and want to run CMake 2.8.5 to export an Eclipse project. The solutions/projects that CMake generated for Visual are OK. When I ru

Re: [CMake] LINKER FLAGS

2011-09-13 Thread pellegrini
thanks for the hint Eric & Michael Eric Michael Wild a écrit : On 09/13/2011 10:35 AM, pellegrini wrote: Hi all, I would like to build a Fortran90 project using Fortran intel compiler. I would like to increase the stack by adding the "/stack" flag to the linker. Looking on the documentati

Re: [CMake] LINKER FLAGS

2011-09-13 Thread Michael Wild
On 09/13/2011 10:35 AM, pellegrini wrote: > Hi all, > > I would like to build a Fortran90 project using Fortran intel compiler. > I would like to increase the stack by adding the "/stack" > flag to the linker. > > Looking on the documentation, I think that "set(CMAKE_EXE_LINKERS_FLAG > /stack:640

Re: [CMake] LINKER FLAGS

2011-09-13 Thread Eric Noulard
2011/9/13 pellegrini : > Hi all, > > I would like to build a Fortran90 project using Fortran intel compiler. I > would like to increase the stack by adding the "/stack" > flag to the linker. > > Looking on the documentation, I think that "set(CMAKE_EXE_LINKERS_FLAG > /stack:6400)" will do the j

Re: [CMake] Running unit test as part of the build

2011-09-13 Thread Michael Wild
On 09/12/2011 09:06 PM, Erik Johansson wrote: > On Mon, Sep 12, 2011 at 20:30, Michael Wild wrote: >> How about using a custom command that runs the unit test using a >> wrapper script that upon successful completion creates a stamp-file and >> depends upon the unit-test executable target itself?

Re: [CMake] Specify the link command in CMake

2011-09-13 Thread Federico Carminati
Hello Eric, sorry for not having changed the subject, I realize it only now. Thanks for your answer. I am trying to use clang / clang++. This works if I do cmake $MY_SOURCE_DIRECTORY -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ however CMake decides to use clang / clang++ as lin

[CMake] Specify the link command in CMake

2011-09-13 Thread Eric Noulard
2011/9/13 Federico Carminati : > Dear All, >is there a way to specify the link command in CMake? If I specify > > export LD=/usr/bin/ld ; cmake $MY_SOURCE_DIRECTORY > > it is not taken and if I set I dont' know if LD env var is supposed to be used at all. > cmake $MY_SOURCE_DIRECTORY \ > -DC

Re: [CMake] Diff output from CMake?

2011-09-13 Thread Federico Carminati
Hello Johny, I am afraid not… here is what I get if I specify the full path /usr/bin/ld this is *all* the command, which of course fails. best, Federico Carminati CERN-PH 1211 Geneva 23 Switzerland Tel: +41 22 76 74959 Fax: +41 22 76 68505 Mobile: +41 76 487 4843 On 13 Sep 2011, at 09:57, Jo

[CMake] LINKER FLAGS

2011-09-13 Thread pellegrini
Hi all, I would like to build a Fortran90 project using Fortran intel compiler. I would like to increase the stack by adding the "/stack" flag to the linker. Looking on the documentation, I think that "set(CMAKE_EXE_LINKERS_FLAG /stack:6400)" will do the job but I was wondering if using t

Re: [CMake] Diff output from CMake?

2011-09-13 Thread Federico Carminati
Dear All, is there a way to specify the link command in CMake? If I specify export LD=/usr/bin/ld ; cmake $MY_SOURCE_DIRECTORY it is not taken and if I set cmake $MY_SOURCE_DIRECTORY \ -DCMAKE_C_LINK_EXECUTABLE=ld \ -DCMAKE_CXX_LINK_EXECUTABLE=ld what I observe is that the "entire" link