Hi Michael,

Thank you for that long and well explained resonse!

I just gave your EXTERNAL_OBJECT approach with a patched cmake version a try.

Unfortunately this is just almost a solution. That way the linker.cmd
appears in the list of files that are fed to the linker, but it
doesn't keep the same order as specified in ADD_EXECUTABLE. External
objects are being appended to the list of object files which doesn't
help in that place. I manually edited the resulting makefile and added
the .cmd file to the object file list in the right place and ran make.
That way the build was completed successfully.

So i guess the only way to have the .cmd file appear in the list of
objects in the same place where it is in the list of source files is
to fiddle with the CMAKE_<LANG>_IGNORE_EXTENSIONS.

Kind Regards,

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