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

Totte Karlsson totte at dunescientific.com
Tue Dec 13 08:00:33 EST 2011


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


More information about the CMake mailing list