Re: [CMake] WORKING_DIRECTORY ignored for ADD_CUSTOM_COMMAND on Visual Studio?

2008-06-27 Thread Pau Garcia i Quiles
Quoting Martin Apel <[EMAIL PROTECTED]>: I got the impression, that the CMake generator for Visual Studio 7 ignores the working directory set in ADD_CUSTOM_COMMAND. Is this a bug or is this a documented feature somehow? Or am I simply doing something wrong? Incidentally, I'm suffering this sam

Re: [CMake] WORKING_DIRECTORY ignored for ADD_CUSTOM_COMMAND on Visual Studio?

2008-06-26 Thread Brad King
Martin Apel wrote: > WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} For VS this is the default working directory if no WORKING_DIRECTORY is given. > This calls a perl script to generate a bunch of Fortran files as needed. > This script has to run in the output directory. I have c

Re: [CMake] WORKING_DIRECTORY ignored for ADD_CUSTOM_COMMAND on Visual Studio?

2008-06-26 Thread Martin Apel
Hi Bill I simply do the following: ADD_CUSTOM_COMMAND(OUTPUT ${FSrcWithBinDir} ${CMAKE_CURRENT_BINARY_DIR}/accessor_protos.h COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/FortranModules.inp ${CMAKE_CURRENT_BINARY_DIR}/FortranModules.inp

Re: [CMake] WORKING_DIRECTORY ignored for ADD_CUSTOM_COMMAND on Visual Studio?

2008-06-26 Thread Bill Hoffman
Martin Apel wrote: Hi all, I got the impression, that the CMake generator for Visual Studio 7 ignores the working directory set in ADD_CUSTOM_COMMAND. Is this a bug or is this a documented feature somehow? Or am I simply doing something wrong? Might be a bug, might be you. Please provide a

[CMake] WORKING_DIRECTORY ignored for ADD_CUSTOM_COMMAND on Visual Studio?

2008-06-26 Thread Martin Apel
Hi all, I got the impression, that the CMake generator for Visual Studio 7 ignores the working directory set in ADD_CUSTOM_COMMAND. Is this a bug or is this a documented feature somehow? Or am I simply doing something wrong? Regards, Martin Virus checked by G DATA AntiVirus Ve