Re: [CMake] Fwd: Re: Compiler debug file, howto remove in clean?

2011-12-14 Thread Totte Karlsson
On 12/13/2011 4:15 PM, David Cole wrote: RUNTIME_OUTPUT_DIRECTORY is a target property, not a variable. You'd have to use get_property to retrieve its value, not ${RUNTIME_OUTPUT_DIRECTORY}... Thanks! I ended up with the following, in the targets CMakeList file get_property(exe_path TARGET

Re: [CMake] Fwd: Re: Compiler debug file, howto remove in clean?

2011-12-14 Thread Michael Hertling
On 12/14/2011 09:43 AM, Totte Karlsson wrote: On 12/13/2011 4:15 PM, David Cole wrote: RUNTIME_OUTPUT_DIRECTORY is a target property, not a variable. You'd have to use get_property to retrieve its value, not ${RUNTIME_OUTPUT_DIRECTORY}... Thanks! I ended up with the following, in the

[CMake] Fwd: Re: Compiler debug file, howto remove in clean?

2011-12-13 Thread Totte Karlsson
not sure if the following was sent to the newsgroup? Sorry if posting double.. set_property(DIRECTORY PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${RUNTIME_OUTPUT_DIRECTORY}/${target}.tds ) Is your RUNTIME_OUTPUT_DIRECTORY

Re: [CMake] Fwd: Re: Compiler debug file, howto remove in clean?

2011-12-13 Thread David Cole
RUNTIME_OUTPUT_DIRECTORY is a target property, not a variable. You'd have to use get_property to retrieve its value, not ${RUNTIME_OUTPUT_DIRECTORY}... HTH, David On Tue, Dec 13, 2011 at 10:04 AM, Totte Karlsson to...@dunescientific.com wrote: not sure if the following was sent to the

Re: [CMake] Fwd: Re: Compiler debug file, howto remove in clean?

2011-12-13 Thread Michael Hertling
On 12/13/2011 04:04 PM, Totte Karlsson wrote: not sure if the following was sent to the newsgroup? Wasn't. ;-) Sorry if posting double.. Only to me. ;) set_property(DIRECTORY PROPERTY ADDITIONAL_MAKE_CLEAN_FILES