Re: [CMake] Transitive library dependencies with parallel builds

2012-03-03 Thread Michael Hertling
On 02/29/2012 05:35 PM, Number Cruncher wrote: > Do transitive dependencies reduce number of jobs that can be compiled in > parallel? > > If I have two libraries A and B, with an executable C, whose > dependencies are described by: > >add_library(A ${A_SRC}) > >add_library(B ${B_SRC})

Re: [CMake] avoid rebuilding targets depending on generated source files

2012-03-03 Thread Ajay Panyala
Please provide a minimal but complete example for this issue. Please find it in the following link http://pastie.org/private/pd13u33s9xpfihf2dbzc1q Thank You Ajay On Sat, Mar 3, 2012 at 3:54 PM, Michael Hertling wrote: > On 03/04/2012 12:14 AM, Ajay Panyala wrote: > > No, it wouldn't; check it

Re: [CMake] avoid rebuilding targets depending on generated source files

2012-03-03 Thread Michael Hertling
On 03/04/2012 12:14 AM, Ajay Panyala wrote: > No, it wouldn't; check it out: > > % touch a > % rm -f b > % ls b > ls: cannot access b: No such file or directory > % cmake -E copy_if_different a b > % ls b > b > % cksum a b > 4294967295 0 a > 4294967295 0 b > > It works with one file, but I have 4

Re: [CMake] avoid rebuilding targets depending on generated source files

2012-03-03 Thread Ajay Panyala
No, it wouldn't; check it out: % touch a % rm -f b % ls b ls: cannot access b: No such file or directory % cmake -E copy_if_different a b % ls b b % cksum a b 4294967295 0 a 4294967295 0 b It works with one file, but I have 4 files that are generated. I have 4 cmake -E copy_if_different commands,

Re: [CMake] Problems with CMake and static Qt plugins

2012-03-03 Thread Michael Hertling
On 03/02/2012 02:48 PM, NoRulez wrote: > Hello, > > I use Qt 4.8.0 from the QtSDK and Iwant to generate a static qt plugin. > In my main.cpp I have the following: > > > #include > #include > > Q_IMPORT_PLUGIN(Local) > > intmain(intargc,char*argv[]){ > QApplicationapp(argc,argv); > > . >

Re: [CMake] avoid rebuilding targets depending on generated source files

2012-03-03 Thread Ajay Panyala
No, it wouldn't; Thanks. It works now. I might have done something wrong earlier. - Ajay On Sat, Mar 3, 2012 at 2:47 PM, Michael Hertling wrote: > On 03/03/2012 10:36 PM, Ajay Panyala wrote: > > Try "cmake -E copy_if_different ..." > > > > cmake -E copy_if_different build/test1.c build/tests/te

Re: [CMake] avoid rebuilding targets depending on generated source files

2012-03-03 Thread Michael Hertling
On 03/03/2012 10:36 PM, Ajay Panyala wrote: > Try "cmake -E copy_if_different ..." > > cmake -E copy_if_different build/test1.c build/tests/test1.c > > That would work when make is run atleast once. > When running make for the 1st time test1.c was never > copied to build/tests before. So I would

[CMake] Install commands/shortcuts for the windows explorer

2012-03-03 Thread norulez
Hi, Is there an easy way to add/create a windows context menu entry with CMake/nsis? If someone has this already done before, maybe this can be explained. Thanks in advance Best Regards NoRulez -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/o

Re: [CMake] avoid rebuilding targets depending on generated source files

2012-03-03 Thread Ajay Panyala
Try "cmake -E copy_if_different ..." cmake -E copy_if_different build/test1.c build/tests/test1.c That would work when make is run atleast once. When running make for the 1st time test1.c was never copied to build/tests before. So I would be comparing a file with another non-existant file and tha

Re: [CMake] avoid rebuilding targets depending on generated source files

2012-03-03 Thread Hendrik Sattler
Am Samstag, 3. März 2012, 21:41:49 schrieb Ajay Panyala: > I have a custom target which runs a command to generate > a C source file say test1.c > > ADD_CUSTOM_TARGET(TestGen ALL > COMMAND genExec ${PROJECT_SOURCE_DIR}/Main.java > DEPENDS ${PROJECT_SOURCE_DIR}/Main.java > ) > > And I have a custo

[CMake] avoid rebuilding targets depending on generated source files

2012-03-03 Thread Ajay Panyala
Hello, I have a custom target which runs a command to generate a C source file say test1.c ADD_CUSTOM_TARGET(TestGen ALL COMMAND genExec ${PROJECT_SOURCE_DIR}/Main.java DEPENDS ${PROJECT_SOURCE_DIR}/Main.java ) And I have a custom command that moves the generated *test1.c * to a new directory in

Re: [CMake] Where can I download the cmake for win64?

2012-03-03 Thread David Cole
On Sat, Mar 3, 2012 at 10:04 AM, John Drescher wrote: >> I download the cmake-2.8.7-win32-x86.exe , but it failed when it works with >> visual studio 2008 win64 and give the message below: >> >> Check for working C compiler using: Visual Studio 9 2008 Win64 >> >> Check for working C compiler using

Re: [CMake] Where can I get the latest version of CMake for cygwin?

2012-03-03 Thread marco atzeri
On 3/2/2012 8:55 PM, Bill Hoffman wrote: On 3/2/2012 1:57 PM, Robert Dailey wrote: Latest version of CMake on the Cygwin installer is 2.8.4. I need 2.8.7. Where can I get 2.8.7 for Cygwin? We have them built, but I have been very bad at not getting them uploaded to the server. You can find t

Re: [CMake] Where can I download the cmake for win64?

2012-03-03 Thread John Drescher
> I download the cmake-2.8.7-win32-x86.exe , but it failed when it works with > visual studio 2008 win64 and give the message below: > > Check for working C compiler using: Visual Studio 9 2008 Win64 > > Check for working C compiler using: Visual Studio 9 2008 Win64 -- broken > > CMake Error at C:/

[CMake] Where can I download the cmake for win64?

2012-03-03 Thread 小马
Hello I download the cmake-2.8.7-win32-x86.exe , but it failed when it works with visual studio 2008 win64 and give the message below: Check for working C compiler using: Visual Studio 9 2008 Win64 Check for working C compiler using: Visual Studio 9 2008 Win64 -- broken CMake Error at C:/Pro