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