Re: [CMake] Run/build custom command/target only when "input" files change

2011-03-08 Thread Mika . Rajala
rg cc Subject Re: [CMake] Run/build custom command/target only when "input" files change Second try, replied to sender directly :) Now that i checked the IDL_OUTPUT_DIR i found out that the second output file is always missing, the .tlb one. Maybe this is why it always ru

Re: [CMake] Run/build custom command/target only when "input" files change

2011-03-08 Thread Mika . Rajala
mika.raj...@patria.fi cc cmake@cmake.org Subject Re: [CMake] Run/build custom command/target only when "input" files change On Mar 8, 2011, at 5:10 AM, mika.raj...@patria.fi wrote: > > foreach(in_file ${ARGN}) > > > > ADD_CUSTOM_COMMAND( > OUTP

Re: [CMake] Run/build custom command/target only when "input" files change

2011-03-08 Thread Mika . Rajala
My cmake version is 2.8.4 "Rolf Eike Beer" Sent by: cmake-boun...@cmake.org 08.03.2011 13:21 To cmake@cmake.org cc Subject Re: [CMake] Run/build custom command/target only when "input" files change > foreach(in_file ${ARGN}) > > > > A

Re: [CMake] Run/build custom command/target only when "input" files change

2011-03-08 Thread Richard Wackerbarth
On Mar 8, 2011, at 5:10 AM, mika.raj...@patria.fi wrote: > > foreach(in_file ${ARGN}) > > > > ADD_CUSTOM_COMMAND( > OUTPUT ${IDL_OUTPUT_DIR}/${out_file}.h > ${IDL_OUTPUT_DIR}/${out_file}.tlb > DEPENDS ${in_file} > COMMAND(${MIDL_EXECUTABLE} ${

Re: [CMake] Run/build custom command/target only when "input" files change

2011-03-08 Thread Rolf Eike Beer
> foreach(in_file ${ARGN}) > > > > ADD_CUSTOM_COMMAND( > OUTPUT ${IDL_OUTPUT_DIR}/${out_file}.h > ${IDL_OUTPUT_DIR}/${out_file}.tlb > DEPENDS ${in_file} > COMMAND(${MIDL_EXECUTABLE} ${in_file} > WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} > )

Re: [CMake] Run/build custom command/target only when "input" files change

2011-03-08 Thread Mika . Rajala
inted out. Did i miss something? -mika "Rolf Eike Beer" Sent by: cmake-boun...@cmake.org 08.03.2011 12:53 To cmake@cmake.org cc Subject Re: [CMake] Run/build custom command/target only when "input" files change > Hi > > I have created a custom command tha

Re: [CMake] Run/build custom command/target only when "input" files change

2011-03-08 Thread Rolf Eike Beer
> Hi > > I have created a custom command that generates source code for me. > > There is a slight annoyance still, the command is excecuted every single > time i tell the compiler to build. > > Can I make it so that it runs the program only when the source file > changes or the target file doesn't

[CMake] Run/build custom command/target only when "input" files change

2011-03-08 Thread Mika . Rajala
Hi I have created a custom command that generates source code for me. There is a slight annoyance still, the command is excecuted every single time i tell the compiler to build. Can I make it so that it runs the program only when the source file changes or the target file doesn't exist? I loo