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

Michael Hertling mhertling at online.de
Tue Dec 13 09:39:16 EST 2011


On 12/13/2011 02:00 PM, Totte Karlsson wrote:
> Hi,
> I'm using cmake with codegear compiler. I have been able to setup a build system 
> to compile some dll's and executables.
> When compiled in Debug mode, a extra .tds file is generated and placed in the 
> same folder as the executable, or dll. In corresponding CMakeLists.txt file I have:
> set_property(DIRECTORY PROPERTY ADDITIONAL_MAKE_CLEAN_FILES 			
> 			${RUNTIME_OUTPUT_DIRECTORY}/${target}.tds
> 			)
> 
> But that does not work. Any tips on what's wrong? I suspect ${target} is the 
> name + .exe or .dll, but not sure. If so, how to cut off the extension?
> 
> 
> -totte

Is your RUNTIME_OUTPUT_DIRECTORY variable set up correctly? Do you
perhaps mean the target property of this name instead, and what's
the value of your "target" variable? Could you post a minimal but
complete CMakeLists.txt file which demonstrates your issue?

Regards,

Michael


More information about the CMake mailing list