On 15/08/10 22:11, SK wrote:
> When using the D language compiler 'dmd' on windows, I'm stuck with a
> linker that gets confused with object file names like foo.c.obj.  The
> linker can only handle a single dot in the object file name, as in
> foo.o
> 
> How can I set target names to just be the base name without the source
> extension?  I need to do this in the language support module, e.g.
> Modules\Platform\Windows-dmd.cmake, so that users don't need to hack
> this in their own CMakeLists.txt files.

Instead of adding '.obj' to the full filename, first extract the
filename-extension (see get_filename_component()) and then add '.o' to that.

/M

-- 
Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org           Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
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

Reply via email to