Re: [CMake] add_custom_command problem

2011-01-17 Thread Andrea Galeazzi
Title: korg Firma Eric Noulard ha scritto: 2011/1/17 Andrea Galeazzi : Eric Noulard ha scritto: 2011/1/17 Andrea Galeazzi : Il 17/01/2011 12.34, Eric Noulard ha scritto: I just realized something. Do you want    A) to increase the build number EACH time you build    B) to incr

Re: [CMake] add_custom_command problem

2011-01-17 Thread Eric Noulard
2011/1/17 Andrea Galeazzi : > Eric Noulard ha scritto: > > 2011/1/17 Andrea Galeazzi : > > > Il 17/01/2011 12.34, Eric Noulard ha scritto: > > > I just realized something. > Do you want >    A) to increase the build number EACH time you build >    B) to increase the build number WHEN of of the SOUR

Re: [CMake] add_custom_command problem

2011-01-17 Thread Andrea Galeazzi
Eric Noulard ha scritto: 2011/1/17 Andrea Galeazzi : Il 17/01/2011 12.34, Eric Noulard ha scritto: I just realized something. Do you want    A) to increase the build number EACH time you build    B) to increase the build number WHEN of of the SOURCES change?

Re: [CMake] add_custom_command problem

2011-01-17 Thread Eric Noulard
2011/1/17 Andrea Galeazzi : > Il 17/01/2011 12.34, Eric Noulard ha scritto: >> I just realized something. >> Do you want >>    A) to increase the build number EACH time you build >>    B) to increase the build number WHEN of of the SOURCES change? > > The B is definitely my choice. So then what is

Re: [CMake] add_custom_command problem

2011-01-17 Thread Andrea Galeazzi
Il 17/01/2011 12.34, Eric Noulard ha scritto: 2011/1/17 Andrea Galeazzi: Il 17/01/2011 11.09, Eric Noulard ha scritto: 2011/1/17 Andrea Galeazzi: I'm trying to invoke a program which increment the build number on a header I just realized something. Do you want A) to increase the build num

Re: [CMake] add_custom_command problem

2011-01-17 Thread Eric Noulard
2011/1/17 Andrea Galeazzi : > Il 17/01/2011 11.09, Eric Noulard ha scritto: >> >> 2011/1/17 Andrea Galeazzi: >>> >>> I'm trying to invoke a program which increment the build number on a >>> header I just realized something. Do you want A) to increase the build number EACH time you build B) t

Re: [CMake] add_custom_command problem

2011-01-17 Thread Andrea Galeazzi
Il 17/01/2011 11.09, Eric Noulard ha scritto: 2011/1/17 Andrea Galeazzi: I'm trying to invoke a program which increment the build number on a header file. I'm currently using the following statement: add_custom_command(OUTPUT "./BuildNumber.h" COMMAND "java" ARGS "-jar"

Re: [CMake] add_custom_command problem

2011-01-17 Thread Rolf Eike Beer
> I'm trying to invoke a program which increment the build number on a > header file. I'm currently using the following statement: > add_custom_command(OUTPUT "./BuildNumber.h" COMMAND "java" ARGS "-jar" Specify an absolute output path here, usually using CMAKE_CURRENT_BINARY_DIR or something s

Re: [CMake] add_custom_command problem

2011-01-17 Thread Eric Noulard
2011/1/17 Andrea Galeazzi : > I'm trying to invoke a program which increment the build number on a header > file. I'm currently using the following statement: > add_custom_command(OUTPUT "./BuildNumber.h" COMMAND "java" ARGS "-jar" >                                        "${TOOLS}\\BuildNumberUpda

[CMake] add_custom_command problem

2011-01-17 Thread Andrea Galeazzi
I'm trying to invoke a program which increment the build number on a header file. I'm currently using the following statement: add_custom_command(OUTPUT "./BuildNumber.h" COMMAND "java" ARGS "-jar" "${TOOLS}\\BuildNumberUpdater.jar"

Re: [CMake] ADD_CUSTOM_COMMAND problem with cmake 2.4.3

2006-10-05 Thread Brad King
Alexander Neundorf wrote: > Original-Nachricht > Datum: Thu, 5 Oct 2006 09:53:37 +0200 > Von: "Gregor Berginc" <[EMAIL PROTECTED]> >> What has changed since patch 2 version? Is this a bug or just my bad >> interpretation of ADD_CUSTOM_COMMAND and cmake variables? > > You need to

Re: [CMake] ADD_CUSTOM_COMMAND problem with cmake 2.4.3

2006-10-05 Thread Alexander Neundorf
Original-Nachricht Datum: Thu, 5 Oct 2006 09:53:37 +0200 Von: "Gregor Berginc" <[EMAIL PROTECTED]> An: cmake@cmake.org Betreff: [CMake] ADD_CUSTOM_COMMAND problem with cmake 2.4.3 > Dear all, > > yesterday I faced wierd behaviour of the newest cma

Re: [CMake] ADD_CUSTOM_COMMAND problem with cmake 2.4.3

2006-10-05 Thread Brad King
Gregor Berginc wrote: > Dear all, > > yesterday I faced wierd behaviour of the newest cmake. Before, I was > using cmake version 2.4-patch 2 and the following command executed > successfully: > = > ADD_CUSTOM_COMMAND( > OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${cpp_class}.h > COMMAND ${JAVAH_RU

[CMake] ADD_CUSTOM_COMMAND problem with cmake 2.4.3

2006-10-05 Thread Gregor Berginc
Dear all, yesterday I faced wierd behaviour of the newest cmake. Before, I was using cmake version 2.4-patch 2 and the following command executed successfully: = ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${cpp_class}.h COMMAND ${JAVAH_RUNTIME} ARGS -verbose -c