[cmake-developers] [CMake 0012471]: CMake add_custom_command problem when triggering a FATAL_ERROR in MSVC

2011-09-21 Thread Mantis Bug Tracker
add_custom_command problem when triggering a FATAL_ERROR in MSVC Description: If have multiple custom commands which call message(FATAL_ERROR Some message) in case of errors. If you do this and encounter such a case MSVC generates many MSB3073 errors. I think this issue is somewhat related to http

Re: [CMake] add_custom_command problem

2011-01-17 Thread Eric Noulard
2011/1/17 Andrea Galeazzi galea...@korg.it: 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 similar.  

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 Galeazzigalea...@korg.it: 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 Eric Noulard
2011/1/17 Andrea Galeazzi galea...@korg.it: Il 17/01/2011 11.09, Eric Noulard ha scritto: 2011/1/17 Andrea Galeazzigalea...@korg.it: 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

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 Galeazzigalea...@korg.it: Il 17/01/2011 11.09, Eric Noulard ha scritto: 2011/1/17 Andrea Galeazzigalea...@korg.it: I'm trying to invoke a program which increment the build number on a header I just realized something. Do you want

Re: [CMake] add_custom_command problem

2011-01-17 Thread Eric Noulard
2011/1/17 Andrea Galeazzi galea...@korg.it: 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

Re: [CMake] add_custom_command problem

2011-01-17 Thread Andrea Galeazzi
Eric Noulard ha scritto: 2011/1/17 Andrea Galeazzi galea...@korg.it: 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

Re: [CMake] add_custom_command problem

2011-01-17 Thread Eric Noulard
2011/1/17 Andrea Galeazzi galea...@korg.it: Eric Noulard ha scritto: 2011/1/17 Andrea Galeazzi galea...@korg.it: 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

Re: [CMake] add_custom_command problem

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

[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

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

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 add the