[cmake-developers] Introducing: message(DEBUG)

2012-03-03 Thread Rolf Eike Beer
I have a small patch to CMake that looks like this: diff --git a/Source/cmMessageCommand.cxx b/Source/cmMessageCommand.cxx index e1dbf34..ad24368 100644 --- a/Source/cmMessageCommand.cxx +++ b/Source/cmMessageCommand.cxx @@ -52,6 +52,18 @@ bool cmMessageCommand status = true; ++i;

Re: [cmake-developers] Introducing: message(DEBUG)

2012-03-03 Thread Yury G. Kudryashov
Rolf Eike Beer wrote: I have a small patch to CMake that looks like this: + if (!this-Makefile-IsOn(CMAKE_DEBUG_MESSAGES)) I propose to print message if one of the following holds: * CMAKE_DEBUG_MESSAGES is true; * CMAKE_DEBUG_MESSAGES_FileName is true, where FileName is

[cmake-developers] Two more patches

2012-03-03 Thread Yury G. Kudryashov
Hi! Review the following two branches in git://gitorious.org/~urkud1/cmake/urkud-cmake.git, please: * rename-used-commands; * remove-unused-members. You can either pull them or open in web browser: https://gitorious.org/~urkud1/cmake/urkud-cmake/commits/remove-unused- members

Re: [cmake-developers] Introducing: message(DEBUG)

2012-03-03 Thread Rolf Eike Beer
Am Samstag, 3. März 2012, 17:05:11 schrieb Yury G. Kudryashov: Rolf Eike Beer wrote: I have a small patch to CMake that looks like this: + if (!this-Makefile-IsOn(CMAKE_DEBUG_MESSAGES)) I propose to print message if one of the following holds: * CMAKE_DEBUG_MESSAGES is true; *

Re: [cmake-developers] Introducing: message(DEBUG)

2012-03-03 Thread Rolf Eike Beer
I have a small patch to CMake that looks like this: For easier access I pushed the topic debug-messages to stage. I don't guarantee for stability here, so I may force-push at any time. Eike signature.asc Description: This is a digitally signed message part. -- Powered by www.kitware.com

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

[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

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 custom

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 that

[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

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 be

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 mhertl...@online.dewrote: On 03/03/2012 10:36 PM, Ajay Panyala wrote: Try cmake -E copy_if_different ... cmake -E copy_if_different build/test1.c

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: #includeQApplication #includeQtPlugin 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; 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

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 files that

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 mhertl...@online.dewrote: On 03/04/2012 12:14 AM, Ajay Panyala wrote: No, it

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})

[Cmake-commits] CMake branch, master, updated. v2.8.7-559-g76bff60

2012-03-03 Thread KWSys Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via 76bff6029222449e0194b9348ac146ab8adfe4e9 (commit) from