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

2011-12-13 Thread Totte Karlsson

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
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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

2011-12-13 Thread Michael Hertling
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
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake