[cmake-developers] NASM Bug
Taylor Holberton
taylorcholberton at gmail.com
Wed Nov 1 19:30:44 EDT 2017
I noticed that CMake strips the trailing forward slash from an include
directory when assembling an object file with NASM. The trailing slash is
required with NASM. See section 2.1.16 from the NASM manual
<http://www.nasm.us/doc/nasmdoc2.html>. I've included an example that
illustrates the bug.
I copied the command text and added the trailing slash and wrote '-f elf64'
instead of '-f elf'. The command ran successfully. Then I ran `make` again
to resume the CMake build and it failed. I noticed that the Makefile was
using NASM to link the executable. I don't believe NASM has this capability.
I believe the stripping of the trailing slash and using NASM for linking
are bugs. If I'm just doing something wrong then I'd love to know how to
fix it. In the meantime, I'll just be using NASM with add_custom_command to
get the job done.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20171101/8b8dd0f3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nasm-bug.tar.gz
Type: application/x-gzip
Size: 493 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20171101/8b8dd0f3/attachment.bin>
More information about the cmake-developers
mailing list